Skip to main content
Glama
benethos-hub

Yahoo Finance MCP Server

by benethos-hub

get_history

Get historical open, high, low, close, and volume data for a stock symbol. Specify period or date range and interval to analyze price trends.

Instructions

Get historical OHLCV (open/high/low/close/volume) data for a symbol.

symbol must be a native Yahoo Finance ticker (e.g. AAPL, SAP.DE), never an ISIN, WKN, or company name; resolve those via search first. period accepts Yahoo values such as 1d, 5d, 1mo, 6mo, 1y, 5y, max. interval accepts e.g. 1m, 5m, 1h, 1d, 1wk, 1mo. Provide start (and optional end) as YYYY-MM-DD to query an explicit date range instead of period. Results are capped at the most recent 250 rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoEnd date 'YYYY-MM-DD'. Used only together with 'start'.
startNoStart date 'YYYY-MM-DD'. Overrides 'period' when set.
periodNoLook-back window. One of: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. Ignored when 'start' is given.1mo
symbolYesA native Yahoo Finance ticker symbol, e.g. 'AAPL', 'MSFT', 'SAP.DE', or 'BMW.DE'. This is NOT an ISIN, a WKN, or a company name, and must NOT be built by appending an exchange suffix to an ISIN (e.g. 'US0378331005.DE' is invalid). If you only have a name or ISIN, call the 'search' tool first and pass the 'symbol' value it returns.
intervalNoBar size. One of: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo. Intraday intervals only cover recent dates.1d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It discloses the 250-row cap, the behavior that 'start' overrides 'period', and that intraday intervals only cover recent dates (in the schema description but echoed in the main description). It also clarifies symbol constraints and accepted period/interval values, providing substantial transparency.

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

Conciseness5/5

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

The description is a single, well-structured paragraph. It front-loads the core purpose, uses code formatting for clarity, and every sentence contributes actionable information. There is no fluff or repetition of schema details.

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

Completeness5/5

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

The tool has 5 parameters, an output schema, and no annotations. The description covers all essential aspects: data type, symbol constraints, parameter formats, date-range behavior, and row limits. Given the output schema exists, this description is fully complete for an agent to select and invoke the tool correctly.

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 100%, so the baseline is 3. The description adds value by giving concrete examples for symbol, period, interval, and explaining the start/end override behavior ('Provide start... instead of period'), which goes beyond the schema's field descriptions. This extra semantic guidance justifies a 4.

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

Purpose5/5

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

The description states a specific verb+resource: 'Get historical OHLCV (open/high/low/close/volume) data for a symbol.' This clearly distinguishes it from siblings like get_quote (current quotes) and get_financials (fundamentals), and the name aligns with the described behavior.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool (when historical OHLCV data is needed) and includes prerequisites: 'symbol must be a native Yahoo Finance ticker... resolve those via search first.' It does not explicitly exclude alternatives, but the scope is well implied given the tool's purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/benethos-hub/yahoo-finance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server