Skip to main content
Glama

get_orderbook

Read-onlyIdempotent

Current resting bids and asks, best bid/ask, and spread for one exact CoinAPI spot instrument, such as COINBASE_SPOT_BTC_USD. Returns exchange and provider timestamps. Snapshot depth defaults to 20 levels per side and is capped at 200. A snapshot does not establish bid buildup over time; use get_orderbook_history. CoinAPI only (provider=coinapi). Does not start a stream or a collector.

[Access: pay 0.005 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>"
    },
    "name": "get_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNoOptional upstream override; omitted uses the existing server default.coinapi
symbol_idYesExact provider spot instrument identifier, including venue, SPOT, base, and quote.
limit_levelsNoMaximum price levels on each side of the order book.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover readOnlyHint, idempotentHint, and destructiveness, and the description goes well beyond them by disclosing cost/auth mechanics (0.005 USDC via x402 or API key, auto-pay behavior), the depth default of 20 and hard cap of 200, and the provider restriction. These are operational facts an agent needs before invoking and are not present in the structured fields.

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?

Front-loaded with what is returned, then scope limits, then the sibling redirection, then access terms. Sentences are short and each carries a distinct fact; the bracketed access note is dense but non-redundant.

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?

No output schema exists, and the description compensates by enumerating the returned fields (bids/asks, best bid/ask, spread, exchange and provider timestamps). Combined with depth limits and payment/auth terms, nothing material is missing for a read-only snapshot tool with 3 params.

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 is 3; the description still adds value by giving the symbol_id format contract (venue + SPOT + base + quote, with an example) and the 200-level cap that the schema's limit_levels description omits. It adds little about the provider override beyond what the schema says.

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 a specific verb and resource set: current resting bids/asks, best bid/ask, and spread, scoped to 'one exact CoinAPI spot instrument' with a concrete example (COINBASE_SPOT_BTC_USD). It explicitly separates itself from get_orderbook_history by noting a snapshot does not establish bid buildup over time.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative (get_orderbook_history) with the condition that selects it, plus explicit when-not guidance: does not start a stream or collector, and is CoinAPI-only. An agent can route correctly without consulting any other tool.

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.