Skip to main content
Glama

get_order_book

Retrieve bids, asks, and spread for a market order book by market ID, with optional depth and venue filters, to assess liquidity before trading.

Instructions

Get the order book for a market: bids, asks, spread.

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_id": "<market_id>"
    },
    "name": "get_order_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoNumber of price levels per side (default: 10)
venueNoVenue name
market_idYesMarket ID or symbol

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden; the verb 'Get' implies a read-only, non-mutating call, and listing bids/asks/spread gives a coarse picture of the return payload even though no output schema exists. It omits staleness/snapshot vs streaming behavior, auth requirements, and any pagination or depth-limit behavior.

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?

A single front-loaded sentence with no filler; the resource comes first and the returned fields follow. Slightly terse for a tool with no annotations, but nothing is wasted.

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 full schema documentation and one required field, the description covers purpose and a high-level view of returned data. Absent an output schema, a bit more detail on the shape of bids/asks levels and whether the book is a snapshot would have made it 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 coverage is 100%, so market_id, venue and depth are already documented in the schema including the default depth of 10. The description adds no further parameter meaning such as symbol format conventions or how venue interacts with market_id, so the baseline of 3 applies.

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?

States a specific verb and resource ('Get the order book for a market') and names what the result contains (bids, asks, spread). The 'order book' resource is naturally distinct from siblings like get_recent_trades or get_market, though the description never explicitly contrasts with them.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when a different tool (e.g. get_recent_trades for trades, get_market for metadata) is more appropriate, and no prerequisites or exclusions.

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