{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threads-mcp-app/json-schema/threads-mcp-app-json-rpc-request-schema.json",
  "title": "JsonRpcRequest",
  "description": "JSON-RPC 2.0 request (with `id`) or notification (without `id`).",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/threads-mcp-app-openapi.json#/components/schemas/JsonRpcRequest",
  "type": "object",
  "required": [
    "jsonrpc",
    "method"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0",
      "description": "JSON-RPC version."
    },
    "id": {
      "type": [
        "string",
        "integer"
      ],
      "description": "Request id, echoed in the response. Omit for notifications."
    },
    "method": {
      "type": "string",
      "description": "MCP method."
    },
    "params": {
      "type": "object",
      "description": "Method parameters. For `tools/call`: `{ name, arguments }`.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Tool name for `tools/call`.",
          "enum": [
            "threads_list_accounts",
            "threads_use_account",
            "threads_get_profile",
            "threads_list_posts",
            "threads_get_post",
            "threads_check_draft",
            "threads_create_post",
            "threads_create_carousel",
            "threads_create_thread",
            "threads_reply",
            "threads_repost",
            "threads_publish_container",
            "threads_delete_post",
            "threads_get_replies",
            "threads_hide_reply",
            "threads_get_mentions",
            "threads_get_activity",
            "threads_keyword_search",
            "threads_profile_lookup",
            "threads_get_profile_posts",
            "threads_get_post_insights",
            "threads_get_posts_insights",
            "threads_get_account_insights",
            "threads_audit_posts",
            "threads_get_publishing_limit"
          ]
        },
        "arguments": {
          "type": "object",
          "description": "Tool arguments, matching the tool's input schema.",
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    }
  }
}