Skip to main content
Glama

stock-ohlcv

Retrieves historical OHLCV candlestick data for stocks, ETFs, or indexes. Supports multiple intervals and lookback periods for chart analysis and quantitative backtesting.

Instructions

Returns historical OHLCV (open/high/low/close/volume) candlestick data for a stock, ETF, or index. Supports intervals from 1-minute to monthly and ranges from 1 day to max history. Use for chart analysis, trend detection, and quantitative backtesting. $0.010/call — free upstream, no API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerNoStock ticker symbol (e.g. 'AAPL', 'SPY', 'BTC-USD', '^VIX'). Case-insensitive.
intervalNoCandlestick interval. Intraday ('1m'–'1h') limited to last 60 days. Default: '1d'.
rangeNoLookback period. Default: '1mo'. Note: intraday intervals cap at 60d max.
limitNoMax candles to return (1–500, default 60). Applied from most recent.
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It mentions cost per call ($0.010) and that it requires no API key. It also notes intraday caps. However, it does not disclose rate limits, authentication needs, or whether data is adjusted. These are moderately important for a financial 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?

The description is concise (three sentences) and front-loaded with the core purpose. It includes key details (cost, no API key) without superfluous text. Each sentence serves a purpose.

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

Completeness3/5

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

For a tool with no output schema, the description should ideally detail the return format. It mentions 'candlestick data' but does not specify columns or whether data is adjusted. With 4 parameters and standard usage, the description is adequate but incomplete regarding the output structure.

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%, but the description adds value by explaining that intervals range from 1-minute to monthly and that range can be from 1 day to max history. It also clarifies intraday limitations for interval and range, which goes beyond the schema descriptions.

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?

The description clearly states the action ('Returns historical OHLCV data') and the resources (stock, ETF, index). It specifies use cases (chart analysis, trend detection, backtesting). However, it does not distinguish this tool from similar siblings like 'us-stock-history' or 'stock-brief'.

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 use cases but lacks explicit when-to-use vs. when-not-to-use guidance. No mention of alternatives or exclusions (e.g., not for real-time data). Usage is implied but not fully contrasted with siblings.

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/thebrierfox/the-stall'

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