{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rrmacademy-org/json-schema/rrmacademy-org-json-rpc-request-schema.json",
  "title": "JsonRpcRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rrmacademy-org-openapi.json#/components/schemas/JsonRpcRequest",
  "type": "object",
  "required": [
    "jsonrpc",
    "method",
    "id"
  ],
  "properties": {
    "jsonrpc": {
      "type": "string",
      "const": "2.0"
    },
    "method": {
      "type": "string",
      "enum": [
        "tools/list",
        "tools/call",
        "initialize"
      ]
    },
    "params": {
      "type": "object",
      "description": "For tools/call: { name: string, arguments: object }. Tool names: search, check_guardrails, check_facts, get_article, find_related."
    },
    "id": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    }
  }
}