Skip to main content
Glama

get_price_history

Retrieve historical daily OHLCV price data and summary trend statistics for one or more material tickers on a specified exchange over a 1–30 day lookback.

Instructions

Get historical price data in TOON tabular format.

Args:
    ticker: Material ticker symbol(s). Single (e.g., "RAT") or
            comma-separated (e.g., "RAT,COF,SF").
    exchange: Exchange code (e.g., "CI1"). Single exchange only.
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.
    days: Historical lookback period in days. Valid: 1-30. Default: 7.

Returns:
    TOON-encoded time series with daily OHLCV data and summary
    statistics for trend analysis.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
tickerYes
exchangeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does supply real constraints: single exchange only, a 1-30 day hard limit, and a stated return shape of daily OHLCV plus summary statistics. It omits any mention of authentication needs, failure modes for invalid tickers, response size limits, or caching behavior, which matters for a data-fetch tool.

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 purpose sentence is front-loaded, followed by a clean Args/Returns breakdown where each line is substantive. It is appropriately sized for a three-parameter tool, with no filler, though the Args-block style is slightly verbose relative to prose.

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 simple three-parameter read tool with an output schema present, the definition covers purpose, all parameter constraints, and the general return shape, which is about as much as an agent needs. The one meaningful omission is routing guidance against the closely named summary sibling.

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 0%, so the description must compensate, and it largely does: ticker accepts single or comma-separated symbols with concrete examples, exchange enumerates all six valid codes, and days is bounded 1-30 with its default restated. Only minor gaps remain, such as whether unknown tickers error or return empty series.

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?

The first sentence states a specific verb and resource — 'Get historical price data' — plus the output format (TOON tabular), so the agent knows exactly what operation it is calling. It does not distinguish itself from the sibling 'get_price_history_summary', which an agent could easily confuse it with.

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?

The description implies usage through its parameter notes (single exchange only, 1-30 day window, trend-analysis purpose), which gives some sense of when the tool applies. However, it never states when to prefer it over 'get_price_history_summary' or other price-related siblings, and offers no exclusions.

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