Skip to main content
Glama

Historical stock prices, OHLCV

stock_history
Read-only

Stock price history as OHLCV bars for any ticker or company name: open, high, low, close, adjusted close and volume from 1-minute to monthly bars over 1 day to the full history, plus first, last, change, high and low. Use to chart a stock, backtest a signal, compute returns or feed indicators. Example: symbol=AAPL. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
rangeNo1d, 5d, 1mo (default), 3mo, 6mo, 1y, 2y, 5y, 10y, ytd or max
symbolYesTicker (AAPL, ^GSPC, BTC-USD) or a company name
intervalNo1m, 5m, 15m, 30m, 60m, 1d, 1wk or 1mo (default suits the range; intraday bars reach back about 60 days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true/openWorldHint=true/destructiveHint=false, and the description adds genuinely new context: explicit pricing ($0.01/call via x402 USDC or card key, first 25 free, failed calls free) and the statement that each call is charged so repeats are not free — which explains the idempotentHint=false annotation. It also clarifies 'reads or computes only and changes nothing.' It does not describe pagination, row caps, or error responses, so it is not exhaustive.

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 opening clause front-loads resource and return shape, then use cases, then cost/behavior — a sensible ordering with little filler. The pricing sentence is dense and mixes payment channels, free-tier, and failure policy in one breath, but every element is actionable.

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?

For a 3-parameter tool with no output schema, the description covers purpose, use cases, return fields, cost model, and side-effect profile, which is nearly everything an agent needs to invoke it correctly. Gaps are minor: no guidance on symbol ambiguity (company name vs ticker), no note on response size for max-range queries, and no error semantics beyond 'failed calls free.'

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?

Schema description coverage is 100% and both enums document every allowed value including the intraday ~60-day lookback, so the schema carries the parameter semantics. The description restates the axis bounds ('1-minute to monthly bars over 1 day to the full history') and adds an example symbol, but contributes no format details, symbol-resolution rules, or range/interval compatibility guidance beyond the schema.

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?

States a specific verb and resource — OHLCV price history for any ticker or company name — and enumerates the returned fields (open, high, low, close, adjusted close, volume plus first/last/change/high/low). It is clearly distinguishable from siblings like stock_quote (a point quote) and polymarket_price_history (prediction markets).

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?

Gives concrete use cases — chart a stock, backtest a signal, compute returns, feed indicators — plus a worked example (symbol=AAPL), which tells the agent exactly when this tool fits. It stops short of naming the sibling to use instead for a current quote (stock_quote) or for token prices, so routing between near-neighbors is left partly to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources