Skip to main content
Glama
Yahoo Finance MCP Server

Yahoo Finance MCP Server

yfinance_get_stock_financials

Read-only

Retrieve a stock's income statement, balance sheet, or cash flow statement by ticker, with quarterly or annual periods and optional field filtering.

Instructions

Get financial statements for a stock (income statement, balance sheet, or cash flow statement).

Args: ticker: Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'GOOGL') statement_type: Type of financial statement - 'income', 'balance', or 'cashflow' (default: 'income') period: Period type - 'quarterly' for quarterly reports, 'annual' for yearly reports (default: 'quarterly') limit: Maximum number of periods to return (default: 4) fields: List of specific line items to include. If None, returns all fields (default: None) response_format: Output format - 'json' or 'markdown' (default: 'markdown')

Returns: Formatted string containing the requested financial statement organized by date. Returns quarterly data by default (most recent 4 quarters). Use period='annual' to get annual/yearly financial statements instead. When fields is specified, only those line items are included.

Example: yfinance_get_stock_financials("AAPL", "income", "json") yfinance_get_stock_financials("AAPL", "income", period="annual", limit=3) # Last 3 years yfinance_get_stock_financials("AAPL", "income", limit=2, fields=["Total Revenue", "Net Income"])

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "yfinance_get_stock_financials"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
fieldsNo
periodNoquarterly
tickerYes
statement_typeNoincome
response_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only supply readOnlyHint and openWorldHint; the description goes further by disclosing the return format ('Formatted string ... organized by date'), that quarterly data for the most recent 4 quarters is the default, and that specifying fields narrows the returned line items. It omits network/rate-limit or data-staleness caveats that matter for an open-world data tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a one-line purpose, then Args/Returns/Example sections that are easy to scan. The Args block partially restates schema defaults and enums, but since the schema has no field descriptions this is filling a real gap rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with an output schema, the description covers purpose, every parameter, defaults, and return shape, plus worked examples — enough for correct invocation. The missing piece is guidance on valid line-item names and on choosing this tool versus neighboring financial-data tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and mostly succeeds: it defines all six parameters with defaults, valid enum values, and concrete examples including a fields list sample. The one gap is the fields parameter, which the schema also accepts as a bare string, while the description only describes it as a list of line items.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (get financial statements) and enumerates the three statement types it can return, which makes it clearly distinct from history, news, or recommendations tools. It does not name a sibling boundary (e.g., vs. earnings dates or stock info), so an agent must infer the split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Offers guidance on parameters ('Use period="annual" to get annual/yearly financial statements instead') and shows example calls, which implies usage. However, it never states when to choose this tool over siblings or any prerequisites/exclusions, so tool-selection guidance is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.