{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.1.0",
  "serverVersion": "0.2.0",
  "minCompatibleServerVersion": "0.2.0",
  "server": {
    "name": "stocksignal-ai",
    "title": "StockSignal AI",
    "endpoint": "/mcp",
    "protocol": "Model Context Protocol (Streamable HTTP)",
    "status": "/mcp/status",
    "openapi": "/api/public/mcp-openapi",
    "auth": {
      "type": "oauth2.1",
      "requiredScopes": [],
      "note": "Bearer tokens issued by the app's OAuth 2.1 authorization server, audience 'authenticated'."
    },
    "disclaimer": "All values are simulated demo data for education. Not real market data, not financial advice."
  },
  "tools": [
    {
      "name": "list_tickers",
      "title": "List available tickers",
      "description": "List every US ticker available in the StockSignal AI demo dataset, with company name and sector.",
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "outputSchema": {
        "$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": [
        {
          "request": {
            "name": "list_tickers",
            "arguments": {}
          },
          "response": {
            "tickers": [
              {
                "ticker": "EXEL",
                "name": "Exelixis, Inc.",
                "sector": "Healthcare"
              },
              {
                "ticker": "NVDA",
                "name": "NVIDIA Corporation",
                "sector": "Technology"
              }
            ]
          }
        }
      ],
      "version": "1.0.0",
      "lastChanged": "2026-08-22",
      "status": "stable"
    },
    {
      "name": "analyze_ticker",
      "title": "Analyze ticker",
      "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.",
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "inputSchema": {
        "$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
      },
      "outputSchema": {
        "$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": [
        {
          "request": {
            "name": "analyze_ticker",
            "arguments": {
              "ticker": "EXEL"
            }
          },
          "response": {
            "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."
            }
          }
        }
      ],
      "version": "1.1.0",
      "lastChanged": "2026-08-23",
      "status": "stable"
    },
    {
      "name": "leaderboard",
      "title": "Score leaderboard",
      "description": "Rank the StockSignal AI demo tickers by overall 0-100 score, highest first. Optional limit.",
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "inputSchema": {
        "$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
      },
      "outputSchema": {
        "$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": [
        {
          "request": {
            "name": "leaderboard",
            "arguments": {
              "limit": 2
            }
          },
          "response": {
            "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
              }
            ]
          }
        }
      ],
      "version": "1.1.0",
      "lastChanged": "2026-08-23",
      "status": "stable"
    },
    {
      "name": "compare_tickers",
      "title": "Compare tickers",
      "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.",
      "annotations": {
        "readOnlyHint": true,
        "idempotentHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "inputSchema": {
        "$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
      },
      "outputSchema": {
        "$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": [
        {
          "request": {
            "name": "compare_tickers",
            "arguments": {
              "tickers": [
                "EXEL",
                "NVDA"
              ]
            }
          },
          "response": {
            "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
              }
            ]
          }
        }
      ],
      "version": "1.0.0",
      "lastChanged": "2026-08-22",
      "status": "stable"
    }
  ],
  "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."
      ]
    }
  ]
}