{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tagli-co-il/json-schema/tagli-co-il-mcp-json-rpc-response-schema.json",
  "title": "McpJsonRpcResponse",
  "description": "JSON-RPC 2.0 response distinguishing strictly between success (`result`) and error (`error`).",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tagli-co-il-mcp-api-openapi.yml#/components/schemas/McpJsonRpcResponse",
  "type": "object",
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0"
    },
    "id": {
      "type": [
        "integer",
        "string",
        "null"
      ]
    },
    "result": {
      "type": "object",
      "additionalProperties": true
    },
    "error": {
      "$ref": "#/$defs/McpJsonRpcErrorObject"
    }
  },
  "oneOf": [
    {
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "not": {
        "required": [
          "error"
        ]
      }
    },
    {
      "required": [
        "jsonrpc",
        "id",
        "error"
      ],
      "not": {
        "required": [
          "result"
        ]
      }
    }
  ],
  "$defs": {
    "McpJsonRpcErrorObject": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "data": {}
      },
      "additionalProperties": true
    }
  }
}