Skip to main content
Glama

EdgarStack

Get end-of-day price history and return statistics

get_price_history
Read-onlyIdempotent

End-of-day stock price history for a US ticker (market data — SEC filings never include prices). Returns the series (open, high, low, close, split- and dividend-adjusted close, volume), dividends and splits in the range, and summary statistics on the adjusted close: total and annualized return, annualized volatility, maximum drawdown with its dates, and the range high and low. frequency: daily, weekly, monthly (default daily). Dates are YYYY-MM-DD; the default range is the last 12 months. Long daily ranges list only the latest 400 points (statistics still cover the full range) — use weekly or monthly for long periods. Price data comes from the user's own Tiingo key: send it as the X-Tiingo-Key header (see /docs#prices); without one the response carries no prices, just a note explaining how to add the header. Not financial advice.

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": {
      "ticker": "<ticker>"
    },
    "name": "get_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesUS ticker symbol, e.g. AAPL or BRK.B
endDateNoYYYY-MM-DD; default today
frequencyNodaily
startDateNoYYYY-MM-DD; default one year before endDate
includeSeriesNoSet false to return only the summary statistics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the read-only/idempotent annotations: authentication requires the user's own Tiingo key in the X-Tiingo-Key header, and without it the response contains no prices but an explanatory note. It also discloses the 400-point listing cap while statistics still cover the full range.

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?

One dense, front-loaded paragraph with no filler sentences; the return contents come first and caveats (truncation, key requirement) follow. It is long but nearly every clause carries information, though breaking the header/truncation caveats into their own sentence would improve scannability.

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?

With no output schema, the description fully compensates by enumerating return fields and statistics, disclosing the auth failure mode, truncation behavior, and defaults. An agent has everything needed to call this correctly and interpret the result.

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 already 80%, yet the description adds meaning: frequency options and default, YYYY-MM-DD date formatting, the default of the last 12 months, and that includeSeries=false yields only summary statistics. Only the ticker format detail is 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 the verb and resource precisely (end-of-day price history for a US ticker) and explicitly distinguishes itself from the filing-oriented siblings by noting that SEC filings never include prices. It also enumerates what is returned (OHLC, adjusted close, volume, dividends, splits, statistics).

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 actionable when-to guidance: use weekly or monthly for long periods because daily ranges are truncated to 400 points, and use this tool rather than filing tools for prices. It does not name specific sibling tools or state exclusions, which keeps it below a 5.

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