{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskmodels-app/json-schema/riskmodels-app-mcptool-schema.json",
  "title": "MCPTool",
  "description": "MCP tool descriptor as returned by `tools/list`. Tools are discoverable via `https://riskmodels.app/.well-known/mcp.json` or by connecting to the SSE endpoint at `https://riskmodels.app/api/mcp/sse` and calling `tools/list`.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskmodels-app-mcp-api-openapi.yml#/components/schemas/MCPTool",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "enum": [
        "riskmodels_analyze_portfolio",
        "riskmodels_compare",
        "riskmodels_decompose",
        "riskmodels_decompose_selection_vs_drift",
        "riskmodels_get_benchmark_fit",
        "riskmodels_get_cohorts",
        "riskmodels_get_etf",
        "riskmodels_get_factor_returns",
        "riskmodels_get_filer",
        "riskmodels_get_fund",
        "riskmodels_get_fundamentals",
        "riskmodels_get_macro_correlation",
        "riskmodels_get_my_positions",
        "riskmodels_get_peers",
        "riskmodels_get_portfolio_risk_snapshot",
        "riskmodels_get_rankings",
        "riskmodels_get_residual_returns",
        "riskmodels_get_residual_signal",
        "riskmodels_get_return_attribution",
        "riskmodels_get_returns",
        "riskmodels_get_stock_snapshot",
        "riskmodels_portfolio_exposure",
        "riskmodels_render_artifact",
        "riskmodels_screen_rankings",
        "riskmodels_search"
      ],
      "description": "MCP tool names (tool set 2.0, `@riskmodels/mcp` 2.0.0). One registry (`registerRiskModelsTools`) serves all\nthree surfaces: the npm stdio server registers 24 tools; the hosted endpoints `/api/mcp/sse` and\n`/api/mcp/openai` register the same 24 plus `riskmodels_render_artifact` (25). Every tool is read-only and\ncalls an existing REST route, billed at that route's price; each description states when to use the tool,\nwhat it returns, data freshness and price. The REST catalog, response schemas and this spec are MCP\nresources (`riskmodels:///capabilities`, `riskmodels:///schemas/{path}`, `riskmodels:///openapi`).\nTool-to-route table and the 1.x migration table: mcp/README.md (Tool set 2.0).\n"
    },
    "description": {
      "type": "string"
    },
    "inputSchema": {
      "type": "object",
      "description": "JSON Schema describing the tool's input parameters."
    },
    "outputSchema": {
      "type": "object",
      "description": "JSON Schema describing the tool's output structure."
    }
  }
}