{"ok":true,"site":{"host":"stockpilot-indol-chi.vercel.app","url":"https://stockpilot-indol-chi.vercel.app/","type":"demo","desc":"A WebMCP-powered trading terminal where humans and AI agents research markets, analyze SEC filings, and trade together — on real data.","tools":[{"name":"search_stock","kind":"answer","impl":"imperative","description":"Search the stock universe for companies or symbols.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Search text for symbol or company name"}},"required":["query"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_stock_details","kind":"answer","impl":"imperative","description":"Retrieve a full stock quote, company profile, and metadata for a given ticker symbol.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol like AAPL or MSFT"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"open_company_analysis","kind":"act","impl":"imperative","description":"Open the full single-company analysis page (financials, valuation, analyst trends, earnings surprises, news) for a ticker and return a short summary.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker like AAPL"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_stock_news","kind":"answer","impl":"imperative","description":"Fetch the latest news articles for a specific stock symbol.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol like AAPL"},"days":{"type":"number","description":"Number of past days to fetch news for (default 7)"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"analyze_sec_filings","kind":"act","impl":"imperative","description":"Fetch recent SEC filings for a symbol, pick the most material filing (largest report or latest), fetch the XML/HTML report, and return the normalized content for LLM analysis.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol like AAPL"},"days":{"type":"number","description":"Lookback window in days (default 30)"},"limit":{"type":"number","description":"Number of recent filings to consider (default 10)"},"highlight":{"type":"array","items":{"type":"string"},"description":"Key phrases or full sentences FROM the filing to highlight in yellow for the user — e.g. the specific risk statements, revenue drivers, guidance, or figures relevant to their question. Copy the exact text so it can be matched. If omitted, the report opens with no highlights."}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_market_news_summary","kind":"answer","impl":"imperative","description":"Fetch a digest of the latest general market news across all categories.","inputSchema":{"type":"object","properties":{"category":{"type":"string","description":"News category: general | forex | crypto | merger"}}},"executable":true,"handlerField":"execute","page":"/"},{"name":"rank_stocks","kind":"act","impl":"imperative","description":"Rank the curated stock universe by a supported metric (performance, volume, price). Navigates to the Markets page and highlights the sorted directory.","inputSchema":{"type":"object","properties":{"metric":{"type":"string","description":"Metric: performance | volume | price"},"limit":{"type":"number","description":"How many stocks to return (default 10)"}},"required":["metric"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"screen_stocks","kind":"act","impl":"imperative","description":"Screen stocks from the universe by price range, percent change, beta, or sector. Navigates to the Markets page, applies the filters in the directory, and scrolls to it.","inputSchema":{"type":"object","properties":{"minPrice":{"type":"number","description":"Minimum stock price"},"maxPrice":{"type":"number","description":"Maximum stock price"},"minPercentChange":{"type":"number","description":"Minimum daily % change"},"maxPercentChange":{"type":"number","description":"Maximum daily % change"},"minBeta":{"type":"number","description":"Minimum beta value"},"maxBeta":{"type":"number","description":"Maximum beta value"},"sector":{"type":"string","description":"Sector filter e.g. Technology, Healthcare, Energy"},"limit":{"type":"number","description":"Max results to return (default 10)"}}},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_sector_performance","kind":"answer","impl":"imperative","description":"Return a breakdown of average performance by market sector from the tracked universe. Navigates to the Markets page and scrolls to the Sector Performance section.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_top_performers","kind":"answer","impl":"imperative","description":"Return the top N best-performing stocks from the universe over the session.","inputSchema":{"type":"object","properties":{"limit":{"type":"number","description":"Number of top performers to return (default 5)"},"direction":{"type":"string","description":"gainers | losers (default: gainers)"}}},"executable":true,"handlerField":"execute","page":"/"},{"name":"compare_stocks","kind":"act","impl":"imperative","description":"Compare multiple stocks side by side — price, change, and relative performance summary.","inputSchema":{"type":"object","properties":{"symbols":{"type":"array","items":{"type":"string"},"description":"Symbols to compare (2–5)"}},"required":["symbols"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"detect_chart_pattern","kind":"act","impl":"imperative","description":"Detect technical chart patterns on a stock. Supported patterns: head_and_shoulders, inverse_head_and_shoulders, abcd, xabcd, cypher, triangle_ascending, triangle_descending, triangle_symmetrical, three_drives, double_top, double_bottom.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol to analyze"},"pattern":{"type":"string","description":"Pattern to detect (e.g. head_and_shoulders, xabcd, cypher)"}},"required":["pattern"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_chart_data_range","kind":"answer","impl":"imperative","description":"Return the exact OHLCV data boundaries for a stock symbol so you can place drawing points accurately on the compare chart.\n\nALWAYS call this before draw_on_compare_chart. It tells you:\n- firstDate / lastDate  → the hard date bounds of the dataset (all dates outside these don't exist)\n- priceMin / priceMax   → the price range over the visible window\n- latestCandle          → the most recent bar (use this as your \"now\" anchor)\n- recentCandles         → the last 20 bars with exact date + OHLC (use these prices for anchor points)\n- visibleWindowStart    → the start of the default 1Y visible window\n\nNever invent dates or prices. Always use exact dates and OHLCV values from this response.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol, e.g. AAPL"},"windowDays":{"type":"number","description":"How many calendar days back to sample (default 365 = 1Y visible window)"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"draw_on_compare_chart","kind":"act","impl":"imperative","description":"Draw technical pattern annotations (trendlines, ABCD, head & shoulders, triangles, rectangles, text labels, horizontal lines, etc.) directly onto the comparison chart canvas.\n\nIMPORTANT — call get_chart_data_range first to get exact valid dates and prices for  the symbol. Never invent dates or prices; use only values from that response.\n\nSupported tool values: trendline, horizontal, ray, channel, rectangle, abcd, xabcd, cypher, headshoulders, triangle, threedrives, measure, text.\n\nPoints use { date: \"YYYY-MM-DD\", price: <number> }. Dates are snapped to the nearest real trading day. Prices are clamped to that bar's high/low range. The chart scrolls to show all annotated bars.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker to display in the chart (e.g. AAPL)"},"drawings":{"type":"array","description":"One or more drawing objects to render on the chart","items":{"type":"object","properties":{"tool":{"type":"string","description":"Drawing type: trendline | horizontal | ray | channel | rectangle | abcd | xabcd | cypher | headshoulders | triangle | threedrives | measure | text"},"color":{"type":"string","description":"CSS hex color, e.g. #fbbf24."},"text":{"type":"string","description":"Label text (only for tool === 'text')."},"points":{"type":"array","description":"Anchor points. Get exact dates and prices from get_chart_data_range first. Required point counts: trendline/ray/rectangle/measure=2, horizontal=1, channel=3, abcd/triangle=4, xabcd/cypher/headshoulders/threedrives=5, text=1.","items":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD trading date from get_chart_data_range"},"price":{"type":"number","description":"Dollar price — must be within the high/low of that date's candle"}},"required":["date","price"]}}},"required":["tool","points"]}},"clearExisting":{"type":"boolean","description":"Remove existing canvas drawings first (default true)."},"chartStyle":{"type":"string","description":"candles | bars | line | area (default candles)."}},"required":["symbol","drawings"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_support_resistance","kind":"answer","impl":"imperative","description":"Calculate key support and resistance price levels for a stock based on current price.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_trend_direction","kind":"answer","impl":"imperative","description":"Determine the current trend direction for a stock: Uptrend, Downtrend, or Sideways consolidation.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_portfolio","kind":"answer","impl":"imperative","description":"Return the full virtual portfolio state including balance, holdings, and transaction history.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"analyze_portfolio","kind":"act","impl":"imperative","description":"Return portfolio performance statistics: total value, P&L, return %, and holding breakdown.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_portfolio_risk","kind":"answer","impl":"imperative","description":"Analyze portfolio risk: concentration, diversification score, estimated beta, and sector exposure.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"buy_stock","kind":"transact","impl":"imperative","description":"Simulate buying a stock with virtual funds from the portfolio balance.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol to buy"},"quantity":{"type":"number","description":"Number of shares to buy"}},"required":["symbol","quantity"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"sell_stock","kind":"transact","impl":"imperative","description":"Simulate selling a stock from the virtual portfolio.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol to sell"},"quantity":{"type":"number","description":"Number of shares to sell"}},"required":["symbol","quantity"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"auto_invest","kind":"transact","impl":"imperative","description":"Automatically invest a budget across top stocks by strategy. Strategy options: momentum (top gainers), diversified (spread across sectors), conservative (low beta), aggressive (high beta/growth).","inputSchema":{"type":"object","properties":{"budget":{"type":"number","description":"Total amount to invest in USD"},"strategy":{"type":"string","description":"momentum | diversified | conservative | aggressive"},"stock_count":{"type":"number","description":"Number of stocks to spread across (default 5)"}},"required":["budget","strategy"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"optimize_portfolio","kind":"act","impl":"imperative","description":"Suggest an optimal stock allocation for a given budget to maximize simulated return with risk management.","inputSchema":{"type":"object","properties":{"budget":{"type":"number","description":"Total budget to allocate in USD"},"risk_level":{"type":"string","description":"low | medium | high (default medium)"}},"required":["budget"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"calculate_position_size","kind":"act","impl":"imperative","description":"Calculate the optimal position size given account size, risk percentage, and stop-loss level.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol"},"risk_percent":{"type":"number","description":"Percentage of account to risk (e.g. 1 for 1%)"},"stop_loss_price":{"type":"number","description":"Stop-loss price level"}},"required":["symbol","risk_percent","stop_loss_price"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"suggest_diversification","kind":"act","impl":"imperative","description":"Given current holdings, suggest new stocks to add for better sector diversification.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_watchlist","kind":"answer","impl":"imperative","description":"Return the user's current watchlist (favorited stocks) with live quotes.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"add_to_watchlist","kind":"act","impl":"imperative","description":"Add a stock symbol to the user's watchlist.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol to add"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"remove_from_watchlist","kind":"act","impl":"imperative","description":"Remove a stock symbol from the user's watchlist.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol to remove"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"set_price_alert","kind":"act","impl":"imperative","description":"Set a virtual price alert for a stock symbol. You will be notified when the AI next checks the price.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol"},"target_price":{"type":"number","description":"Target price to alert at"},"condition":{"type":"string","description":"above | below"}},"required":["symbol","target_price","condition"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_price_alerts","kind":"answer","impl":"imperative","description":"Return all active price alerts with their current status checked against live prices.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"},{"name":"backtest_strategy","kind":"act","impl":"imperative","description":"Simulate a simple trading strategy on a stock. Strategies: sma_crossover (20/50 day MA), rsi_mean_revert (buy oversold, sell overbought), buy_hold.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol"},"strategy":{"type":"string","description":"sma_crossover | rsi_mean_revert | buy_hold"},"initial_capital":{"type":"number","description":"Starting capital (default $10,000)"}},"required":["symbol","strategy"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"navigate_to","kind":"act","impl":"imperative","description":"Navigate the user's browser to a page in the StockPilot app. Pages: /, /markets, /portfolio, /watchlist, /orders, /news, /ipos, /compare, /analysis, /stock/SYMBOL.","inputSchema":{"type":"object","properties":{"path":{"type":"string","description":"The page path to navigate to, e.g. /portfolio or /stock/AAPL"}},"required":["path"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"open_compare","kind":"act","impl":"imperative","description":"Open the stock comparison page, optionally with pre-selected symbols to compare.","inputSchema":{"type":"object","properties":{"symbols":{"type":"array","items":{"type":"string"},"description":"Symbols to pre-select in compare (optional)"}}},"executable":true,"handlerField":"execute","page":"/"},{"name":"compare_chart_canvas","kind":"act","impl":"imperative","description":"All-in-one comparison chart and technical canvas controller. Configures chart style ('candles', 'bars', 'line', 'area', 'compare', 'split'), active stock symbols, focused stock, timeframe range ('1M', '3M', '6M', '1Y', '5Y'), indicators (SMA, EMA, Bollinger Bands, Volume, RSI, MACD), and canvas drawings (lines, rectangles, text, measure, chart patterns). Can also execute comprehensive multi-company AI analysis with reported financials, recommendation trends, and auto-drawn pattern detection.","inputSchema":{"type":"object","properties":{"chartStyle":{"type":"string","enum":["candles","bars","line","area","compare","split"],"description":"Chart display style: 'compare' & 'split' display multi-stocks simultaneously. 'candles', 'bars', 'line', 'area' display the focused single-stock with indicators and canvas overlays."},"symbols":{"type":"array","items":{"type":"string"},"description":"List of company symbols to benchmark (e.g. ['AAPL', 'MSFT', 'TSLA'])."},"focusSymbol":{"type":"string","description":"Stock symbol to focus on for single-stock styles, indicators, and canvas annotations (e.g. 'AAPL')."},"range":{"type":"string","enum":["1M","3M","6M","1Y","5Y"],"description":"Historical timeframe period: '1M', '3M', '6M', '1Y', or '5Y'."},"normalized":{"type":"boolean","description":"In 'compare' mode: true = indexed return (base 100), false = actual dollar price."},"indicators":{"type":"object","properties":{"sma":{"type":"boolean","description":"SMA (20) moving average"},"ema":{"type":"boolean","description":"EMA (50) exponential moving average"},"bollinger":{"type":"boolean","description":"Bollinger Bands overlay"},"volume":{"type":"boolean","description":"Volume histogram"},"rsi":{"type":"boolean","description":"RSI (14) momentum oscillator"},"macd":{"type":"boolean","description":"MACD trend/momentum indicator"}},"description":"Technical indicators to enable/disable (applies to focused single-stock style)."},"drawings":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string","enum":["trendline","ray","horizontal","channel","rectangle","text","measure","abcd","xabcd","cypher","headshoulders","triangle","threedrives"],"description":"Drawing shape: line (trendline, ray, horizontal, channel), rectangle, text label, measure target, or chart pattern."},"points":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","description":"Date in YYYY-MM-DD format"},"price":{"type":"number","description":"Price coordinate in USD"}},"required":["time","price"]},"description":"Array of coordinate points { time, price } for this drawing."},"color":{"type":"string","description":"Hex color code (e.g. '#38bdf8')"},"text":{"type":"string","description":"Text label or annotation callout"}},"required":["tool","points"]},"description":"Array of drawing annotations to plot onto the chart overlay canvas."},"clearDrawings":{"type":"boolean","description":"If true, clears existing drawings before applying new ones."},"runAiAnalysis":{"type":"boolean","description":"If true, runs complete AI multi-company comparative analysis (growth matrix, news catalysts, recommendation trends, reported financials, and pattern detection)."},"autoDrawPatterns":{"type":"boolean","description":"If true, automatically detects technical patterns on the focused stock and plots them on the canvas."}}},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_stock_recommendation_trends","kind":"answer","impl":"imperative","description":"Get latest analyst recommendation trends for one or more companies from Finnhub (strongBuy, buy, hold, sell, strongSell, period).","inputSchema":{"type":"object","properties":{"symbols":{"type":"array","items":{"type":"string"},"description":"List of stock ticker symbols (e.g. ['AAPL', 'TSLA'])"}},"required":["symbols"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_financials_reported","kind":"answer","impl":"imperative","description":"Get SEC financials as reported for a company from Finnhub, including income statement (ic), balance sheet (bs), and cash flow (cf).","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Ticker symbol (e.g. AAPL)"},"freq":{"type":"string","enum":["annual","quarterly"],"description":"Frequency of filings (default quarterly)"}},"required":["symbol"]},"executable":true,"handlerField":"execute","page":"/"},{"name":"get_earnings_calendar","kind":"answer","impl":"imperative","description":"Return upcoming earnings dates (next ~120 days) for the tracked stock universe, from Finnhub's earnings calendar.","inputSchema":{"type":"object","properties":{}},"executable":true,"handlerField":"execute","page":"/"}],"favicon":"/favicons/stockpilot-indol-chi.vercel.app.ico","apiSurface":"spec","category":"Finance & Crypto","toolCount":37}}