Skip to main content
Glama

order_book_aggregator

Perpetual-futures order books for one asset across OKX, Hyperliquid, dYdX and Kraken Futures, side by side and merged: per-venue best bid/ask and spread, depth and bid/ask imbalance within ±0.5%, ±1% and ±2% of each venue's mid (in quote value), the cross-venue best bid/ask and any crossed books between venues, and the top merged levels. Accepts BTC, BTCUSDT, BTC/USDT, BTC-USDT-SWAP or Kraken's XBT. Depth bands that extend past what a venue returns are flagged as lower bounds. Venues that fail are listed under errors; the call fails (and is not charged) only if none answers. Costs $0.005 USDC per call.

Input Schema

NameRequiredDescriptionDefault
levelsNoPrice levels to show per venue and in the merged book, 1–50 (default 10)
symbolYesBase asset or pair, e.g. 'BTC', 'ETH', 'SOLUSDT', 'BTC/USDT'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries full burden and does so well: it discloses error semantics (failed venues listed under errors, call fails only if none answers), billing ($0.005 USDC per call, not charged on total failure), and a data caveat (depth bands past venue coverage flagged as lower bounds). This is exactly the behavioral context annotations would otherwise supply.

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?

Front-loaded with the core purpose, then layers outputs, symbol formats, caveats, and cost. Dense but every sentence adds distinct information; minor density cost from the long output enumeration, but nothing is wasted.

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?

With no output schema and no annotations, the description fully compensates — it details the return contents, failure handling, caveats, and cost, so an agent knows what it gets and how it's charged. Nothing needed to call it correctly is missing.

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, but the description adds real value on the required symbol parameter by listing multiple accepted formats (BTC, BTCUSDT, BTC/USDT, BTC-USDT-SWAP, Kraken's XBT) beyond the schema's brief example. The levels parameter semantics (1–50 default 10) are already in the schema and not elaborated, hence 4 not 5.

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 — aggregated perpetual-futures order books across four named venues, merged and side by side — and enumerates the exact outputs (best bid/ask, spread, depth and imbalance at defined bands, crossed books, top merged levels). An agent can distinguish this from siblings like perp_market_overview or dex_liquidity without opening any schema.

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?

The comparison/merge framing makes the intended use case clear — cross-venue depth and arbitrage-style crossed-book detection — but it never explicitly names when to prefer a sibling (e.g., perp_market_overview) or when-not to use it. Clear context, no exclusions.

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.

Resources