Skip to main content
Glama
order-flow-mcp

order-flow-mcp

by zadescoxp

Order book

get_order_book
Read-only

Retrieve a live aggregated crypto order book with depth, spread, imbalance, and large resting walls to gauge liquidity and short-term supply and demand.

Instructions

Live aggregated order book: top levels with cumulative size, spread, imbalance, depth within 0.1–2% of mid, large resting walls, and optionally per-venue top of book.

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

Input Schema

NameRequiredDescriptionDefault
depthNoLevels per side (default 20).
venueNo"all" (default, aggregate every venue listing the market) or one exchange: binance, bybit, okx, bitget, hyperliquid, deribit, coinbase, gate, kucoin, kraken, htx.
symbolYesAsset or symbol, e.g. "BTC", "ETHUSDT", "SOL-PERP".
per_venueNoInclude each venue's top of book (default false).
group_ticksNoGroup levels into buckets of N footprint ticks (~1bp each). 0 = raw exchange levels (default).
market_typeNo"perp" (default) or "spot".
wait_secondsNoSeconds to wait for first data when a market is not streaming yet (default 10).

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?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavior context by stating the data is live and aggregated and by listing derived metrics (imbalance, walls, cumulative size). It does not disclose what happens when a market is not streaming, whether the result is a point-in-time snapshot, or any latency/freshness caveats, even though the schema's wait_seconds hints such conditions exist.

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 dense sentence with the resource front-loaded and no filler. The metric list is long but each item carries information about the return payload, which matters since there is no output schema. Slightly list-heavy but nothing is padding.

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?

With seven parameters fully documented in the schema and no output schema, the description correctly takes on the job of describing the returned fields, which it does thoroughly. Gaps remain around streaming/staleness behavior and sibling routing, but for a read-only market-data fetch it is largely sufficient.

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 and the schema already explains depth, venue, group_ticks, market_type, and wait_seconds. The description only adds meaning for per_venue ("optionally per-venue top of book") and loosely for depth via the 0.1-2% of mid framing. It does not clarify the venue list, tick grouping semantics, or the tradeoff between depth and group_ticks.

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 names a specific resource (aggregated order book) and enumerates exactly what it returns: top levels with cumulative size, spread, imbalance, depth within 0.1-2% of mid, large resting walls, optional per-venue top of book. That is enough to distinguish it from siblings like get_footprint or get_trades without opening a schema. It stops short of naming any sibling explicitly, so it is clear but not differentiating by contrast.

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 or when-not-to-use guidance and no alternative tool is named. The agent must infer that this is the tool for depth/liquidity inspection rather than get_liquidity_heatmap or get_venue_comparison. The description reads as a content manifest, not a routing instruction.

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