Skip to main content
Glama

Statistics of the World

get_market_history

Read-onlyIdempotent

Read forward sampled pool states or perpetual midpoints, including quiet/unavailable states and separate definition versions. These are sampled quotes rather than trades or cash-security OHLC. Requires exact market, symbol and UTC from/to timestamps, maximum 31 days. No history is inferred before collection began.

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": {
      "market": "<market>",
      "symbol": "<symbol>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_market_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWindow end, UTC timestamp ending in Z; at most 31 days after from.
fromYesWindow start, UTC timestamp ending in Z (e.g. 2026-11-01T00:00:00Z).
limitNoMaximum samples returned (default 5000).
marketYesToken pools or perpetual derivatives.
symbolYesExact, case-sensitive symbol from get_onchain_quotes catalog=true (e.g. PAXG, xyz:SILVER).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / from / description
      Added value: +"Window start, UTC timestamp ending in Z (e.g. 2026-11-01T00:00:00Z)."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum samples returned (default 5000)."
    • addedInput schema / properties / market / description
      Added value: +"Token pools or perpetual derivatives."
    • addedInput schema / properties / symbol / description
      Added value: +"Exact, case-sensitive symbol from get_onchain_quotes catalog=true (e.g. PAXG, xyz:SILVER)."
    • addedInput schema / properties / to / description
      Added value: +"Window end, UTC timestamp ending in Z; at most 31 days after from."
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, so the description's job is to add context — and it does: data are forward-sampled quotes including quiet/unavailable states, definition versions may change over time, and no backfill exists before collection started. The 31-day window cap is also a concrete constraint not present in the annotations.

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?

Three sentences, front-loaded with what is returned and immediately followed by the 'not trades/OHLC' caveat. The phrase 'separate definition versions' is vague and costs a few words without resolving what an agent should do with it, but overall there is little waste.

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

Completeness3/5

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

There is no output schema, so the description carries the burden of explaining return values; it characterizes them as sampled quotes with quiet/unavailable states and version distinctions, which is helpful but leaves the actual record shape and how missing/quiet samples are represented unexplained. For a five-parameter history tool, that is adequate but not complete.

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%, so the baseline is 3; the schema already documents from/to formats, the 31-day rule, the limit default and the market enum. The description adds only the cross-tool hint that the case-sensitive symbol must come from the get_onchain_quotes catalog, which is a real but small increment over the schema.

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 description uses a specific verb and resource ('Read forward sampled pool states or perpetual midpoints') and explicitly scopes what the data is not ('sampled quotes rather than trades or cash-security OHLC'), which is genuinely differentiating. It does not name a sibling tool as an alternative, so the distinction from get_market_quotes is left implicit.

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?

It gives prerequisites (exact market, symbol, UTC from/to, 31-day maximum) and a boundary condition ('No history is inferred before collection began'), plus a useful pointer to get_onchain_quotes catalog=true for obtaining a valid symbol. However, it never states when to choose this over get_market_quotes or get_historical_data, so routing guidance is only implied.

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