Skip to main content
Glama
porkornrawee

finance-mcp

by porkornrawee

get_stock_history

Get historical OHLCV candle data for stocks and ETFs. Define the ticker, lookback period, and interval to receive past price and volume records in chronological order.

Instructions

Get historical OHLCV candles for a stock or ETF.

Args: symbol: Ticker symbol, e.g. AAPL. period: Lookback window. One of: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, max. interval: Candle size. One of: 1m, 5m, 15m, 1h, 1d, 1wk, 1mo.

Returns a list of candles ordered oldest-to-newest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
periodNo1mo
intervalNo1d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the output format (list of candles ordered oldest-to-newest) and parameter constraints. No contradictions; it is a read-only tool without side effects.

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, front-loading the main purpose, then listing parameters with examples in a clean formatted style. Every sentence adds value without unnecessary fluff.

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?

Given the tool's simplicity and presence of an output schema (though not shown), the description adequately covers parameter usage and return format. It does not mention data source or rate limits, but these are not critical for basic usage.

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 must compensate. It adds meaning by explaining symbol as 'Ticker symbol, e.g., AAPL', period as 'Lookback window', interval as 'Candle size', and provides example values. This is effective but could be slightly more detailed.

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 retrieves historical OHLCV candles for stocks or ETFs, distinguishing it from sibling tools like get_stock_quote (current price) and analyze_stock (analysis). The verb 'Get' and resource 'historical OHLCV candles for a stock or ETF' are specific.

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?

The description provides clear parameter guidance (symbol, period, interval) with examples, but does not explicitly state when to use this tool versus alternatives like analyze_stock or get_stock_quote. The context is implied for historical data retrieval.

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/porkornrawee/finance-mcp'

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