Skip to main content
Glama
shukitchan

Yahoo Finance MCP Server

by shukitchan

yahoo_stock_history

Fetch historical price and volume data for a stock ticker over a chosen period to support charting, trend analysis, and performance evaluation.

Instructions

Get historical stock data from Yahoo Finance. Returns price and volume data for a specified time period. Useful for charting, trend analysis, and evaluating stock performance over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoTime period (1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max)1mo
symbolYesStock ticker symbol (e.g., AAPL, MSFT, TSLA)
intervalNoData interval (1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo)1d
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the return type (price and volume data) but does not mention data source limitations, time zone effects, or that it supports intraday intervals. It is a read-only operation, but the description does not elaborate on exactly what the returned data structure looks like, leaving some ambiguity.

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 and front-loaded with the main purpose, followed by a useful use-case sentence. There is no redundant information or filler.

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?

The tool is simple with three parameters, all explained in the schema. The description provides enough context for what the tool does and when to use it, though it lacks a detailed description of the return structure since there is no output schema. Overall, it is adequate for the tool's complexity.

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

Parameters3/5

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

The schema description coverage is 100%, so the parameters (symbol, period, interval) are already fully documented. The description adds general context about 'specified time period' but does not add any details beyond the schema, earning the baseline score.

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 that the tool retrieves historical stock data from Yahoo Finance, specifying that it returns price and volume data for a time period. This distinguishes it from siblings like yahoo_stock_quote (current quotes) and yahoo_market_data (market overview).

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 gives clear context for use, such as charting, trend analysis, and performance evaluation over time. It implies when to use this tool rather than a quote tool, though it does not explicitly name alternative tools or state exclusions.

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/shukitchan/yahoofinance-mcp'

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