MCP server implementation for yahoo finance integration
Server provides 9 tools with complete input schemas and descriptions. All tools follow verb_noun naming (get_*). However, descriptions are verbose (200-400+ chars, exceeding the 10-200 char baseline for LLM optimization) and contain example values (e.g., 'AAPL', '2024-01-19') that LLMs may reuse literally. Parameter descriptions are present but repetitive. Output schemas are not documented, LLMs cannot plan downstream calls or extract structured data. No error handling guidance, no pagination support for list-returning tools, and no tool annotations (readOnlyHint, idempotentHint). All tools are read-only, which is correct, but this is not declared via annotations.
Get financial statement for a given ticker symbol from yahoo finance. You can choose from the following financial statement types: income_stmt, quarterly_income_stmt, balance_sheet, quarterly_balance_sheet, cashflow, quarterly_cashflow. Args: ticker: str The ticker symbol of the stock to get financial statement for, e.g. "AAPL" financial_type: str The type of financial statement to get. You can choose from the following financial statement types: income_stmt, quarterly_income_stmt, balance_sheet, quarterly_balance_sheet, cashflow, quarterly_cashflow.
Get historical stock prices for a given ticker symbol from yahoo finance. Include the following information: Date, Open, High, Low, Close, Volume, Adj Close. Args: ticker: str The ticker symbol of the stock to get historical prices for, e.g. "AAPL" period : str Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max Either Use period parameter or use start and end Default is "1mo" interval : str Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo Intraday data cannot extend last 60 days Default is "1d"
Get holder information for a given ticker symbol from yahoo finance. You can choose from the following holder types: major_holders, institutional_holders, mutualfund_holders, insider_transactions, insider_purchases, insider_roster_holders. Args: ticker: str The ticker symbol of the stock to get holder information for, e.g. "AAPL" holder_type: str The type of holder information to get. You can choose from the following holder types: major_holders, institutional_holders, mutualfund_holders, insider_transactions, insider_purchases, insider_roster_holders.
Output schemas not documented. LLMs cannot infer what fields are returned, preventing downstream tool chaining and forcing agents to guess at response structure.
Descriptions contain example values (AAPL, 2024-01-19) that LLMs may reuse literally in subsequent calls, causing failures. Replace examples with enum constraints or format declarations.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
Fetch the option chain for a given ticker symbol, expiration date, and option type. Args: ticker: str The ticker symbol of the stock to get option chain for, e.g. "AAPL" expiration_date: str The expiration date of the option chain to get, e.g. "2024-01-19" option_type: str The type of option to get. You can choose from the following option types: call, put.
Fetch the available options expiration dates for a given ticker symbol. Args: ticker: str The ticker symbol of the stock to get option expiration dates for, e.g. "AAPL"
Get recommendations or upgrades/downgrades for a given ticker symbol from yahoo finance. You can also specify the number of months back to get upgrades/downgrades for, default is 12. Args: ticker: str The ticker symbol of the stock to get recommendations for, e.g. "AAPL" recommendation_type: str The type of recommendation to get. You can choose from the following recommendation types: recommendations, upgrades_downgrades. months_back: int The number of months back to get upgrades/downgrades for. Default is 12.
Get stock dividends and stock splits for a given ticker symbol from yahoo finance. Args: ticker: str The ticker symbol of the stock to get stock actions for, e.g. "AAPL"
Get stock information for a given ticker symbol from yahoo finance. Include the following information: Stock Price & Trading Info, Company Information, Financial Metrics, Earnings & Revenue, Margins & Returns, Dividends, Balance Sheet, Ownership, Analyst Coverage, Risk Metrics, Other. Args: ticker: str The ticker symbol of the stock to get information for, e.g. "AAPL"
Get news for a given ticker symbol from yahoo finance. Args: ticker: str The ticker symbol of the stock to get news for, e.g. "AAPL"
Tool descriptions are 200-400+ characters, exceeding the 10-200 char baseline for LLM optimization. Verbose descriptions waste tokens and bury key intent signals.
No tool annotations (readOnlyHint, idempotentHint) declared. All tools are read-only and safe to retry, but this is not signaled to the agent.
No error handling guidance. Tools that fail (invalid ticker, API rate limit, network error) return no recovery hints. LLMs cannot determine if errors are retryable or user-fixable.