Skip to main content
Glama

get_orderbook_history

Read-onlyIdempotent

Historical resting bids and asks for one exact CoinAPI spot instrument over an explicit UTC window of at most 24 hours. Defaults to 100 snapshots and 20 levels per side; maximum 1,000 snapshots and 50 levels. Returns bounded provider coverage and limit_reached; does not imply continuous or full-depth coverage. CoinAPI only (provider=coinapi).

[Access: pay 0.01 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

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": {
      "symbol_id": "<symbol_id>",
      "time_end": "<time_end>",
      "time_start": "<time_start>"
    },
    "name": "get_orderbook_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results.
providerNoOptional upstream override; omitted uses the existing server default.coinapi
time_endYesISO 8601 UTC-aware end timestamp; after start and at most 24 hours later.
symbol_idYesExact provider spot instrument identifier, including venue, SPOT, base, and quote.
time_startYesInclusive ISO 8601 UTC-aware start timestamp.
limit_levelsNoMaximum price levels on each side of the order book.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantive context on top: results are bounded by provider coverage, a limit_reached flag signals truncation, and results do not imply continuous or full-depth coverage — a genuine data-quality caveat an agent must know to interpret output honestly. It also discloses the access model (x402 pay-per-call auto-pay via PAYMENT-SIGNATURE header versus API-key access with no per-call charge), which affects how a client should invoke it.

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?

Two compact blocks: the data contract first (what, scope, defaults, maxima, coverage caveat, provider), then access/payment in a bracketed aside. Every sentence carries information — defaults, ceilings, truncation flag, provider lock, and cost model — with no restatement of the tool name or 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?

There is no output schema, yet the description names the return signals that matter (bounded provider coverage and limit_reached) and warns against over-reading the data as continuous/full-depth. Combined with the window cap, result ceilings, and auth/payment options, an agent has everything needed to call this correctly and interpret the response.

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 schema already defines all six parameters and the baseline is 3. The description still adds meaning beyond it: the 20-levels-per-side semantic for limit_levels, the hard ceilings of 1,000 snapshots and 50 levels, and the 'after start and at most 24 hours later' constraint on time_end that couples two parameters together.

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 opening sentence gives a specific verb+resource+scope: historical resting bids/asks for one exact CoinAPI spot instrument over an explicit UTC window of at most 24 hours. The word 'Historical' paired with the sibling name get_orderbook makes the distinction between snapshot and history evident without opening either schema, and the provider restriction ('CoinAPI only') further narrows the tool.

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?

It states the operative constraints clearly: one exact instrument, an explicit UTC window capped at 24 hours, provider=coinapi only, defaults of 100 snapshots / 20 levels, and maxima of 1,000 / 50. What it lacks is an explicit routing statement such as 'for a current snapshot use get_orderbook' or a note on when the 24-hour cap forces windowing — context is clear but alternatives are only implied by the word 'Historical'.

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.