{
  "openapi": "3.1.0",
  "info": {
    "title": "StockSignal AI — MCP tools",
    "version": "1.1.0",
    "summary": "Schema bundle v1.1.0, MCP server v0.2.0",
    "description": "OpenAPI view of the StockSignal AI Model Context Protocol server.\n\nAll tools are invoked as JSON-RPC 2.0 `tools/call` requests against `POST /mcp`; the per-tool paths below use `#toolName` fragments purely for documentation and codegen.\n\nTool interfaces last changed 2026-08-23.\n\nData is simulated demo data for education — not real market data, not financial advice.",
    "x-schema-version": "1.1.0",
    "x-server-version": "0.2.0",
    "x-changelog": [
      {
        "version": "1.1.0",
        "date": "2026-08-23",
        "changes": [
          "Bundle now carries schemaVersion, per-tool versions, and this changelog.",
          "analyze_ticker: documented coverage and confidence data-quality fields.",
          "leaderboard: documented the scoring window input.",
          "Added an OpenAPI 3.1 spec at /api/public/mcp-openapi."
        ]
      },
      {
        "version": "1.0.0",
        "date": "2026-08-22",
        "changes": [
          "Initial JSON Schema (2020-12) bundle for all four MCP tools."
        ]
      }
    ]
  },
  "servers": [
    {
      "url": "https://stocksignalai.pro"
    }
  ],
  "tags": [
    {
      "name": "MCP tools",
      "description": "Read-only stock analysis tools."
    },
    {
      "name": "Meta",
      "description": "Versioning, status, and schema discovery."
    }
  ],
  "paths": {
    "/mcp#list_tickers": {
      "post": {
        "operationId": "list_tickers",
        "summary": "List available tickers (v1.0.0)",
        "description": "List every US ticker available in the StockSignal AI demo dataset, with company name and sector.\n\nJSON-RPC 2.0 `tools/call` against POST /mcp with `params.name = \"list_tickers\"`. Tool interface version 1.0.0, last changed 2026-08-22.",
        "tags": [
          "MCP tools"
        ],
        "security": [
          {
            "oauth2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "const": "tools/call"
                  },
                  "params": {
                    "type": "object",
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "const": "list_tickers"
                      },
                      "arguments": {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "properties": {},
                        "required": [],
                        "additionalProperties": false
                      }
                    }
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "list_tickers",
                      "arguments": {
                        "name": "list_tickers",
                        "arguments": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "const": "2.0"
                    },
                    "id": {
                      "type": [
                        "string",
                        "number"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "structuredContent": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "type": "object",
                          "required": [
                            "tickers"
                          ],
                          "properties": {
                            "tickers": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "ticker",
                                  "name",
                                  "sector"
                                ],
                                "properties": {
                                  "ticker": {
                                    "type": "string",
                                    "description": "Uppercase US ticker symbol."
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "Company name."
                                  },
                                  "sector": {
                                    "type": "string",
                                    "description": "Industry sector."
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": {
                        "structuredContent": {
                          "tickers": [
                            {
                              "ticker": "EXEL",
                              "name": "Exelixis, Inc.",
                              "sector": "Healthcare"
                            },
                            {
                              "ticker": "NVDA",
                              "name": "NVIDIA Corporation",
                              "sector": "Technology"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/mcp#analyze_ticker": {
      "post": {
        "operationId": "analyze_ticker",
        "summary": "Analyze ticker (v1.1.0)",
        "description": "Return the full StockSignal AI analysis for a US ticker from the demo dataset: current price, 0-100 score, rating, per-pillar scores, catalysts, risks, and bull/base/bear cases.\n\nJSON-RPC 2.0 `tools/call` against POST /mcp with `params.name = \"analyze_ticker\"`. Tool interface version 1.1.0, last changed 2026-08-23.",
        "tags": [
          "MCP tools"
        ],
        "security": [
          {
            "oauth2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "const": "tools/call"
                  },
                  "params": {
                    "type": "object",
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "const": "analyze_ticker"
                      },
                      "arguments": {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "required": [
                          "ticker"
                        ],
                        "properties": {
                          "ticker": {
                            "type": "string",
                            "minLength": 1,
                            "description": "US stock ticker symbol, e.g. EXEL, NVDA, AAPL. Case-insensitive."
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "analyze_ticker",
                      "arguments": {
                        "name": "analyze_ticker",
                        "arguments": {
                          "ticker": "EXEL"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "const": "2.0"
                    },
                    "id": {
                      "type": [
                        "string",
                        "number"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "structuredContent": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "type": "object",
                          "required": [
                            "ticker",
                            "name",
                            "sector",
                            "price",
                            "changePct",
                            "score",
                            "rating",
                            "confidence",
                            "coverage",
                            "pillars",
                            "catalysts",
                            "risks",
                            "cases"
                          ],
                          "properties": {
                            "ticker": {
                              "type": "string",
                              "description": "Uppercase ticker symbol."
                            },
                            "name": {
                              "type": "string",
                              "description": "Company name."
                            },
                            "sector": {
                              "type": "string",
                              "description": "Industry sector."
                            },
                            "price": {
                              "type": "number",
                              "description": "Simulated current price in USD."
                            },
                            "changePct": {
                              "type": "number",
                              "description": "Simulated daily percent change."
                            },
                            "score": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "Overall 0-100 score."
                            },
                            "rating": {
                              "type": "string",
                              "enum": [
                                "Strong Buy",
                                "Buy",
                                "Hold",
                                "Reduce",
                                "Avoid"
                              ],
                              "description": "Plain-English rating derived from the overall score."
                            },
                            "confidence": {
                              "type": "string",
                              "enum": [
                                "High",
                                "Medium",
                                "Low"
                              ],
                              "description": "Confidence in the score."
                            },
                            "coverage": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "Percent of pillars with data."
                            },
                            "pillars": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "key",
                                  "label",
                                  "score",
                                  "weight"
                                ],
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "description": "Pillar identifier, e.g. growth, valuation."
                                  },
                                  "label": {
                                    "type": "string",
                                    "description": "Human-readable pillar name."
                                  },
                                  "score": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 100,
                                    "description": "0-100 pillar score."
                                  },
                                  "weight": {
                                    "type": "number",
                                    "description": "Weight of this pillar in the overall score (0-1)."
                                  }
                                },
                                "additionalProperties": false
                              },
                              "description": "Per-pillar scores and weights."
                            },
                            "catalysts": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Upcoming catalysts."
                            },
                            "risks": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Key risk flags."
                            },
                            "cases": {
                              "type": "object",
                              "required": [
                                "bull",
                                "base",
                                "bear"
                              ],
                              "properties": {
                                "bull": {
                                  "type": "string"
                                },
                                "base": {
                                  "type": "string"
                                },
                                "bear": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": {
                        "structuredContent": {
                          "ticker": "EXEL",
                          "name": "Exelixis, Inc.",
                          "sector": "Healthcare",
                          "price": 23.41,
                          "changePct": 1.24,
                          "score": 78,
                          "rating": "Buy",
                          "confidence": "Medium",
                          "coverage": 92,
                          "pillars": [
                            {
                              "key": "growth",
                              "label": "Growth",
                              "score": 81,
                              "weight": 0.18
                            },
                            {
                              "key": "valuation",
                              "label": "Valuation",
                              "score": 66,
                              "weight": 0.14
                            }
                          ],
                          "catalysts": [
                            "Phase 3 readout expected next quarter"
                          ],
                          "risks": [
                            "Single-product revenue concentration"
                          ],
                          "cases": {
                            "bull": "Pipeline readouts land positive and margins expand.",
                            "base": "Steady revenue growth with in-line margins.",
                            "bear": "Trial setback compresses the multiple."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/mcp#leaderboard": {
      "post": {
        "operationId": "leaderboard",
        "summary": "Score leaderboard (v1.1.0)",
        "description": "Rank the StockSignal AI demo tickers by overall 0-100 score, highest first. Optional limit.\n\nJSON-RPC 2.0 `tools/call` against POST /mcp with `params.name = \"leaderboard\"`. Tool interface version 1.1.0, last changed 2026-08-23.",
        "tags": [
          "MCP tools"
        ],
        "security": [
          {
            "oauth2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "const": "tools/call"
                  },
                  "params": {
                    "type": "object",
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "const": "leaderboard"
                      },
                      "arguments": {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "required": [],
                        "properties": {
                          "limit": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 10,
                            "description": "Max number of tickers to return."
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "leaderboard",
                      "arguments": {
                        "name": "leaderboard",
                        "arguments": {
                          "limit": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "const": "2.0"
                    },
                    "id": {
                      "type": [
                        "string",
                        "number"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "structuredContent": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "type": "object",
                          "required": [
                            "leaders"
                          ],
                          "properties": {
                            "leaders": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "ticker",
                                  "name",
                                  "sector",
                                  "score",
                                  "rating",
                                  "confidence",
                                  "changePct"
                                ],
                                "properties": {
                                  "ticker": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "sector": {
                                    "type": "string"
                                  },
                                  "score": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 100
                                  },
                                  "rating": {
                                    "type": "string",
                                    "enum": [
                                      "Strong Buy",
                                      "Buy",
                                      "Hold",
                                      "Reduce",
                                      "Avoid"
                                    ]
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "High",
                                      "Medium",
                                      "Low"
                                    ]
                                  },
                                  "changePct": {
                                    "type": "number"
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": {
                        "structuredContent": {
                          "leaders": [
                            {
                              "ticker": "NVDA",
                              "name": "NVIDIA Corporation",
                              "sector": "Technology",
                              "score": 88,
                              "rating": "Strong Buy",
                              "confidence": "High",
                              "changePct": 2.06
                            },
                            {
                              "ticker": "EXEL",
                              "name": "Exelixis, Inc.",
                              "sector": "Healthcare",
                              "score": 78,
                              "rating": "Buy",
                              "confidence": "Medium",
                              "changePct": 1.24
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/mcp#compare_tickers": {
      "post": {
        "operationId": "compare_tickers",
        "summary": "Compare tickers (v1.0.0)",
        "description": "Compare 2-4 US tickers side by side: score, rating, price, percent change, and per-pillar scores. Missing tickers are reported in the response.\n\nJSON-RPC 2.0 `tools/call` against POST /mcp with `params.name = \"compare_tickers\"`. Tool interface version 1.0.0, last changed 2026-08-22.",
        "tags": [
          "MCP tools"
        ],
        "security": [
          {
            "oauth2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "const": "tools/call"
                  },
                  "params": {
                    "type": "object",
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "const": "compare_tickers"
                      },
                      "arguments": {
                        "$schema": "https://json-schema.org/draft/2020-12/schema",
                        "type": "object",
                        "required": [
                          "tickers"
                        ],
                        "properties": {
                          "tickers": {
                            "type": "array",
                            "minItems": 2,
                            "maxItems": 4,
                            "items": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": "2 to 4 US ticker symbols to compare."
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "compare_tickers",
                      "arguments": {
                        "name": "compare_tickers",
                        "arguments": {
                          "tickers": [
                            "EXEL",
                            "NVDA"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "const": "2.0"
                    },
                    "id": {
                      "type": [
                        "string",
                        "number"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "content": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "structuredContent": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "type": "object",
                          "required": [
                            "comparison"
                          ],
                          "properties": {
                            "comparison": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "ticker",
                                  "available"
                                ],
                                "properties": {
                                  "ticker": {
                                    "type": "string"
                                  },
                                  "available": {
                                    "type": "boolean",
                                    "description": "False when the ticker is not in the demo dataset."
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "sector": {
                                    "type": "string"
                                  },
                                  "price": {
                                    "type": "number"
                                  },
                                  "changePct": {
                                    "type": "number"
                                  },
                                  "score": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 100
                                  },
                                  "rating": {
                                    "type": "string",
                                    "enum": [
                                      "Strong Buy",
                                      "Buy",
                                      "Hold",
                                      "Reduce",
                                      "Avoid"
                                    ]
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "High",
                                      "Medium",
                                      "Low"
                                    ]
                                  },
                                  "pillars": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "required": [
                                        "key",
                                        "label",
                                        "score",
                                        "weight"
                                      ],
                                      "properties": {
                                        "key": {
                                          "type": "string",
                                          "description": "Pillar identifier, e.g. growth, valuation."
                                        },
                                        "label": {
                                          "type": "string",
                                          "description": "Human-readable pillar name."
                                        },
                                        "score": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "description": "0-100 pillar score."
                                        },
                                        "weight": {
                                          "type": "number",
                                          "description": "Weight of this pillar in the overall score (0-1)."
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example1": {
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": {
                        "structuredContent": {
                          "comparison": [
                            {
                              "ticker": "EXEL",
                              "available": true,
                              "name": "Exelixis, Inc.",
                              "sector": "Healthcare",
                              "price": 23.41,
                              "changePct": 1.24,
                              "score": 78,
                              "rating": "Buy",
                              "confidence": "Medium",
                              "pillars": [
                                {
                                  "key": "growth",
                                  "label": "Growth",
                                  "score": 81,
                                  "weight": 0.18
                                }
                              ]
                            },
                            {
                              "ticker": "ZZZZ",
                              "available": false
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/mcp/status": {
      "get": {
        "operationId": "getMcpStatus",
        "summary": "MCP server status, versions, and changelog",
        "tags": [
          "Meta"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Status document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/mcp-schemas": {
      "get": {
        "operationId": "getMcpSchemas",
        "summary": "Versioned JSON Schema bundle for the MCP tools",
        "tags": [
          "Meta"
        ],
        "security": [],
        "parameters": [
          {
            "name": "tool",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "list_tickers",
                "analyze_ticker",
                "leaderboard",
                "compare_tickers"
              ]
            },
            "description": "Return a single tool's schema instead of the full bundle."
          }
        ],
        "responses": {
          "200": {
            "description": "Schema bundle",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.1 with PKCE. No scopes required; tokens carry the `authenticated` audience.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://stocksignalai.pro/.lovable/oauth/consent",
            "tokenUrl": "https://stocksignalai.pro/.mcp/token",
            "scopes": {}
          }
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing, malformed, or expired bearer token.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "jsonrpc": {
                  "type": "string",
                  "const": "2.0"
                },
                "id": {
                  "type": [
                    "string",
                    "number",
                    "null"
                  ]
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Authenticated but not permitted to call this tool.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "jsonrpc": {
                  "type": "string",
                  "const": "2.0"
                },
                "id": {
                  "type": [
                    "string",
                    "number",
                    "null"
                  ]
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "RateLimited": {
        "description": "Rate limit exceeded. Honour the Retry-After header.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            },
            "description": "Seconds to wait."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "jsonrpc": {
                  "type": "string",
                  "const": "2.0"
                },
                "id": {
                  "type": [
                    "string",
                    "number",
                    "null"
                  ]
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ServerError": {
        "description": "Transient upstream failure; retry with exponential backoff.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "jsonrpc": {
                  "type": "string",
                  "const": "2.0"
                },
                "id": {
                  "type": [
                    "string",
                    "number",
                    "null"
                  ]
                },
                "error": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}