{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-mcp-mcpresponse-schema.json",
  "title": "mcp.MCPResponse",
  "description": "JSON-RPC 2.0 response structure for MCP",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-mcp-api-openapi.yml#/components/schemas/mcp.MCPResponse",
  "type": "object",
  "properties": {
    "error": {
      "$ref": "#/$defs/mcp.MCPError"
    },
    "id": {
      "description": "Request identifier matching the request",
      "type": "string"
    },
    "jsonrpc": {
      "description": "JSON-RPC version, always \"2.0\"",
      "type": "string"
    },
    "result": {
      "description": "Result of the method call (present on success)"
    }
  },
  "$defs": {
    "mcp.MCPError": {
      "description": "Error object with code and message",
      "type": "object",
      "properties": {
        "code": {
          "description": "Error code (-32700: Parse error, -32600: Invalid Request, -32601: Method not found, -32602: Invalid params, -32603: Internal error)",
          "type": "integer"
        },
        "data": {
          "description": "Additional error data (optional)"
        },
        "message": {
          "description": "Human-readable error message",
          "type": "string"
        }
      }
    }
  }
}