Skip to main content
Glama
benethos-hub

Yahoo Finance MCP Server

by benethos-hub

get_history

Retrieve historical OHLCV data for any Yahoo Finance symbol, with configurable period, interval, and date range.

Instructions

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

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 Yahoo ticker or an ISIN, e.g. 'AAPL', 'SAP.DE' or 'US0378331005'. For a company name, use 'search' first.
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

Behavior3/5

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

Since no annotations are provided, the description carries full burden. It discloses results are capped at 250 rows and that intraday intervals cover only recent dates, which is helpful. However, it omits other behavioral traits like rate limits, error handling, or authentication needs.

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 concise: one sentence for purpose, then bullet-like examples and a cap note. No redundant words, and key information is front-loaded.

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?

With 5 parameters, one required, and an output schema, the description covers essential usage: valid values for period/interval, date range alternatives, and row cap. It is sufficient for correct invocation, though more detail on symbol validation could help.

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 coverage is 100%, so baseline is 3. The description adds value by providing example values for period and interval, explaining the start/end vs. period tradeoff, and clarifying that start overrides period. This enriches the schema's definitions.

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 clearly states the tool returns historical OHLCV data for a symbol, specifying the exact resource and operation. This distinguishes it from sibling tools like get_quote (current price) and get_fund_data (fundamental data).

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

Usage Guidelines2/5

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

The description provides parameter examples but gives no explicit guidance on when to use this tool versus alternatives like get_quote, get_fund_data, or search. An agent must infer usage context from tool names alone.

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