A dual-MCP investment analysis system with market-intelligence (financial data fetching) and investment-brain (local scoring/analysis engine) servers for stock analysis, screening, and paper trading
Mixed quality across 13 tools. Market-intelligence tools (1-9) have strong descriptions (100-250 chars) with clear use cases and prerequisites, good parameter typing, and structured outputs. Investment-brain tools (10-13) lack visible schemas and have minimal descriptions. Tool naming is verb-forward and clear. Major gaps: no error handling guidance, no output schemas documented, no tool annotations (readOnlyHint/destructiveHint), parameter descriptions sometimes generic. Average tool description ~180 chars (within baseline 194), but 4 tools have <50 char descriptions. Schemas present for market-intelligence but investment-brain tools inferred only.
Analyze a single stock. Returns scored data + raw fundamentals + technicals + news headlines.
Get full profiles for multiple stocks in one MCP call using parallel fetching. Returns profiles array + errors array + counts. Use for portfolio analysis of multiple tickers (up to 20 recommended). Replaces 14+ individual get_full_profile calls.
Get FII (Foreign Institutional Investor) and DII (Domestic Institutional Investor) daily flow data from NSE India. Returns daily buy/sell/net breakdown, rolling totals, and sentiment signal (e.g. 'DII absorbing FII selling'). India market only. Data sourced from nsepython.
Get comprehensive stock profile in one call: price, valuation (PE, PEG, P/B, EV/EBITDA), quality (ROE, margins, debt), growth (revenue, earnings), analyst targets, risk (beta, insider%), and dividends. Use clean symbols only (e.g. 'NVDA', 'BEL.NS', 'SHOP.TO'). Always call resolve_tickers first if symbol may be ambiguous.
Get institutional activity for a stock: insider buy/sell transactions, top institutional holders (Vanguard, BlackRock etc.) with % held and change, mutual fund holders, analyst upgrades/downgrades with price targets, earnings calendar, and major holders summary. Works for US and Canadian stocks. For Indian stocks, insider/institutional data is not available via Yahoo Finance — use get_fii_dii_flows instead for India institutional sentiment.
Investment-brain tools (analyze_stock, screen_stocks, portfolio_review, paper_trade) have no visible input schemas in source code. Tool definitions are inferred from mcp_wrapper.py wrapper only; actual schema registration not shown.
No error handling guidance in any tool description. Tools do not explain what to do on failure (e.g., 'If symbol not found, try resolve_tickers first'). Agents have no recovery path on errors.
No output schemas documented anywhere. Market-intelligence tools return dicts but structure is not formally specified. LLMs cannot plan downstream calls without knowing response fields.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 55 | 2026-07-28+ | v2 |
Get Nifty 50 index P/E, P/B, dividend yield, year high/low, and valuation zone (Excellent <18, Good 18-22, Fair 22-25, Expensive 25-28, Bubble >28) with action guidance. Use as macro overlay before analyzing Indian stocks. Data sourced from nsetools with yfinance fallback.
Pre-compute a 4-pillar investment score (Valuation + Quality + Momentum + Risk, 25pts each, 100 total) with deal-breaker checks. Deal-breakers: current_ratio<0.5, debt_to_equity>500, or no revenue+earnings. Returns pillar scores with reasons, total score, verdict suggestion (BUY/HOLD/SELL), and raw profile + technicals data for Claude to refine the analysis.
Compute technical indicators server-side: RSI(14), MACD, ADX(14), ATR(14), Bollinger Bands(20), MFI(14), OBV, SMA 50/200, Golden/Death Cross, trend strength, and overall signal. Period options: 1mo, 3mo, 6mo, 1y, 2y, 5y. Requires 50+ data points. Returns suggested stop loss (price - 2×ATR).
Get US macro environment: VIX fear gauge (calm/elevated/crisis), 10Y-3M yield curve spread (normal/flattening/inverted), DXY US Dollar trend (headwind/tailwind), and S&P 500 200DMA trend. Returns a combined macro_summary signal. Call this before analysing any US/Canada stock for macro context. VIX > 30 = avoid new positions. Inverted yield curve = recession risk. All data via yfinance, no extra API keys needed.
Execute a paper trade (BUY or SELL).
Review current portfolio from SQLite DB.
Resolve company names or partial tickers to exact Yahoo Finance symbols. ALWAYS call this BEFORE any other tool when the user mentions stocks. Handles dynamic lookup, suffix detection (.NS for India NSE, .TO for Canada TSX, .BO for India BSE, .L for London), and ambiguity. Returns resolved symbols, ambiguous matches, and failures. Never adds context words like 'India', 'stock', or 'NSE' to queries.
Screen a universe of stocks by criteria. Returns ranked results.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). paper_trade is destructive (WRITE risk noted) but no annotation in schema. Agents cannot distinguish safe from unsafe tools.
Investment-brain tool descriptions are minimal (20-40 chars). 'Review current portfolio from SQLite DB' and 'Execute a paper trade (BUY or SELL)' lack context on when to use, what they return, or prerequisites.