Skip to main content
Glama

get_history

Get historical OHLCV-style prediction market candles over a time range, including the latest stored depth snapshot within each bucket when available. Can also export CSV text or base64-encoded Parquet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesInclusive ISO 8601 end timestamp
fromYesInclusive ISO 8601 start timestamp
venueNoVenue filter, e.g. polymarket or kalshi
formatNoReturn JSON candles, CSV text payload, or base64-encoded Parquet payloadjson
market_idNoPlatform-specific market ID
granularityNoBucket size for history candles1d
canonical_idNoCross-venue canonical market ID

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries full burden. It discloses the inclusion of depth snapshots and multiple output formats, but omits behavioral traits like error handling, rate limits, ordering, pagination, or authentication requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence that front-loads the core action and key features. No wasted words.

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?

While the description covers the main purpose, it lacks details on output structure (e.g., JSON candle fields) since there is no output schema. For 7 parameters and no output schema, more context on return format would improve completeness.

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 baseline 3. The description adds value beyond schema by explaining the nature of the data (OHLCV-style candles, depth snapshot, export formats) which is not in individual parameter descriptions.

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?

The description specifies exactly what the tool does: get historical OHLCV-style prediction market candles over a time range, including depth snapshots and export options. It clearly distinguishes from siblings like get_quote (real-time) and get_arbitrage (relative pricing).

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 for historical data retrieval but does not explicitly state when to use it versus alternatives, nor does it provide exclusion criteria or prerequisites. No guidance on when not to use it.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: deep link generation, arbitrage detection, historical data, live quotes, unmet demand discovery, and market routing. No two tools overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case (execute_url, get_arbitrage, get_history, get_quote, get_unmet_demand, route_market), making them predictable and easy to differentiate.

Tool Count5/5

Six tools is well-scoped for a prediction market surveillance and trading facilitation server. Each tool covers a distinct aspect of the domain without unnecessary bloat or insufficiency.

Completeness5/5

The tool set covers the full lifecycle from market discovery (route_market, get_arbitrage, get_unmet_demand) to data analysis (get_history, get_quote) to action (execute_url), with no obvious gaps given the server's stated purpose.

Resources