Skip to main content
Glama

Agent Data Tools: Prices and DeFi

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.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "stock_history"
  }
}

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 (or 1h), 1d, 1wk or 1mo (default suits the range; intraday bars reach back about 60 days)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / interval / description
      Previous value: -"1m, 5m, 15m, 30m, 60m, 1d, 1wk or 1mo (default suits the range; intraday bars reach back about 60 days)"New value: +"1m, 5m, 15m, 30m, 60m (or 1h), 1d, 1wk or 1mo (default suits the range; intraday bars reach back about 60 days)"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations: per-call pricing ($0.002 via x402 USDC or a card key), first 10 calls free, failed calls free, and an explicit warning that repeated calls are not free, which explains the idempotentHint=false setting in operational terms. It also confirms the read-only/no-mutation behavior. It does not discuss rate limits, data-source latency, or per-range payload size limits.

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?

Front-loaded with the core purpose, then use cases, then pricing and safety notes in a compact run of clauses; no filler sentences. It is dense to the point of being clause-heavy, but each clause (fields, ranges, uses, cost, read-only) carries distinct information.

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 no output schema, the description usefully enumerates the returned fields (open, high, low, close, adjusted close, volume, first, last, change, high/low), which compensates well. Pricing and read-only behavior are covered; only secondary details like response size, pagination, or data latency are absent for a three-parameter, open-world data tool.

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%, with enums and defaults documented for range and interval, so the schema already carries the parameter burden. The description adds modest value by restating that symbol accepts tickers or company names and gives an example (symbol=AAPL), but does not clarify interactions such as interval validity for a given range beyond what the schema says.

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 resource (stock price history as OHLCV bars) with explicit scope: any ticker or company name, open through volume, 1-minute to monthly bars, 1 day to full history. The verb/resource pairing plus the returned-field list makes it immediately distinguishable from quote-style siblings such as stock_quote 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 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, which tells the agent what class of task this serves. It does not name an alternative for the non-historical case (e.g. a live quote) or state when-not to use it, so it stops short of full routing guidance.

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