{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/isgenai/json-schema/isgenai-json-rpc-response-schema.json",
  "title": "JsonRpcResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/isgenai-mcp-api-openapi.yml#/components/schemas/JsonRpcResponse",
  "oneOf": [
    {
      "$ref": "#/$defs/JsonRpcResult"
    },
    {
      "$ref": "#/$defs/JsonRpcError"
    }
  ],
  "$defs": {
    "JsonRpcError": {
      "type": "object",
      "required": [
        "jsonrpc",
        "id",
        "error"
      ],
      "description": "JSON-RPC 2.0 error. Transport-level errors use id null.",
      "properties": {
        "jsonrpc": {
          "type": "string",
          "enum": [
            "2.0"
          ]
        },
        "id": {
          "oneOf": [
            {
              "$ref": "#/$defs/JsonRpcId"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "type": "object",
          "required": [
            "code",
            "message"
          ],
          "properties": {
            "code": {
              "type": "integer"
            },
            "message": {
              "type": "string"
            },
            "data": {}
          }
        }
      }
    },
    "JsonRpcId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "JsonRpcResult": {
      "type": "object",
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "properties": {
        "jsonrpc": {
          "type": "string",
          "enum": [
            "2.0"
          ]
        },
        "id": {
          "$ref": "#/$defs/JsonRpcId"
        },
        "result": {
          "type": "object",
          "description": "Method result, e.g. an MCP InitializeResult or CallToolResult."
        }
      }
    }
  }
}