Skip to main content
Glama

stocks history

stocks_history
Read-only

Historical OHLCV candles for a stock, index, future, forex pair or crypto pair: ranges 1d to max, intervals 1m to 1mo, adjusted close, dividends and splits, plus a summary (change %, high/low, max drawdown, per-bar and annualised volatility). Up to 5,000 bars. Typically 15-minute delayed; not investment advice. $0.004. Costs $0.004 USDC per call (x402).

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": "stocks_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNo1d 5d 1mo 3mo 6mo 1y 2y 5y 10y ytd max
symbolYes
intervalNo1m 5m 15m 30m 1h 1d 1wk 1mo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Despite annotations covering safety (readOnly/openWorld), the description adds substantial operational context: 15-minute delay, a 5,000-bar cap, per-call cost ($0.004 USDC via x402), and the disclosure that adjusted close, dividends, and splits are included. These are exactly the traits an agent needs before invoking an open-world paid data call.

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, followed by capability and constraint detail in a tight sequence. The cost is stated twice ('$0.004. Costs $0.004 USDC per call (x402).'), a minor redundancy, but the rest of the sentences earn their place.

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 carries the return-value burden well by naming the payload (OHLCV candles, adjusted close, dividends/splits, summary metrics like change %, max drawdown, volatility). The remaining gap is the symbol parameter's expected format, which is documented nowhere.

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 coverage is 67%, with range and interval already documented by their enum-style descriptions. The description largely restates those values ('ranges 1d to max, intervals 1m to 1mo') and adds nothing about the required symbol parameter, whose format (ticker vs. exchange-prefixed) is left unspecified.

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?

States a specific verb+resource (historical OHLCV candles) and enumerates the covered asset classes (stock, index, future, forex, crypto). The scope is unmistakably distinct from a live quote tool. It stops short of naming sibling tools like stocks_quote or crypto_candles, so differentiation is implicit rather than explicit.

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?

Usage is implied by the content: 'Historical OHLCV candles' conveys that this is the historical-data tool as opposed to a real-time quote. However, no when-to-use statement, no exclusions, and no alternative tool is named for cases like needing a single latest price.

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