Skip to main content
Glama

Price History

price_history
Read-onlyIdempotent

PREFER for HISTORICAL closing prices and daily returns on a specific past date or date range — "what did the S&P 500 close at on August 7", "closing prices and daily returns for these four indices last Friday", "AAPL close on 2026-06-30". Accepts one or more Yahoo Finance symbols (indices ^GSPC/^IXIC/^DJI/^SOX/^RUT, stocks, ^TNX yields, GC=F commodities, BTC-USD crypto, EURUSD=X FX — same symbol space as get_quotes) plus start_date/end_date, and returns each trading day's close WITH the previous close and the computed daily return percent, per symbol. Keyless (Yahoo Finance). Use get_quotes for CURRENT prices; this tool is for any date in the past.

Input Schema

NameRequiredDescriptionDefault
symbolsYesOne or more Yahoo Finance symbols, e.g. "^GSPC" or ["^GSPC","^IXIC","^DJI","^SOX"]. Comma-separated string also accepted. Up to 40 per call — symbols beyond that come back in "dropped_symbols", never silently.
end_dateNoLast date wanted, YYYY-MM-DD. Defaults to start_date.
start_dateYesFirst date wanted, YYYY-MM-DD. For a single day, set start_date = end_date — the previous close and daily return for that day are included automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / symbols / description
      Previous value: -"One or more Yahoo Finance symbols, e.g. \"^GSPC\" or [\"^GSPC\",\"^IXIC\",\"^DJI\",\"^SOX\"]. Comma-separated string also accepted. Up to 8."New value: +"One or more Yahoo Finance symbols, e.g. \"^GSPC\" or [\"^GSPC\",\"^IXIC\",\"^DJI\",\"^SOX\"]. Comma-separated string also accepted. Up to 40 per call — symbols beyond that come back in \"dropped_symbols\", never silently."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so safety is covered; the description adds real value beyond them — data source and keyless access (Yahoo Finance), and the exact return composition (each day's close plus previous close and computed daily return percent). It omits rate limits/latency and the 40-symbol cap is left to the schema, so it stops short of a 5.

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 routing directive is front-loaded in the first words and the closing sentence reinforces the alternative. The three inline example queries are slightly redundant with the schema's examples array, which keeps it from a 5, but nothing is filler.

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

Completeness5/5

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

For a 3-param read tool with full schema coverage and annotations, the description covers purpose, alternative routing, symbol domain, and return payload shape. No output schema exists, yet the description still explains what comes back, leaving no material gap.

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%, so the baseline is 3, but the description adds meaning the schema does not: the accepted symbol space (indices, stocks, ^TNX yields, GC=F, BTC-USD, EURUSD=X) and its equivalence to get_quotes' symbol space. Date semantics are left to 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+resource ('historical closing prices and daily returns') with scope (specific past date or range, per symbol) and immediately contrasts with the sibling get_quotes. The worked example queries make the intent unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: 'PREFER for HISTORICAL...', 'Use get_quotes for CURRENT prices; this tool is for any date in the past.' The when-to-use and the named alternative are both given, and the boundary (past vs. current dates) is unambiguous.

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.