Skip to main content
Glama

orderbook_imbalance

Aggregates spot order book depth and returns bid/ask notional within 10/25/50/100 bps of mid, signed imbalance in [-1,1], largest liquidity walls and a directional signal. 0.02 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
pairYesTrading pair such as SOL-USDT, BTC-USDT, ETH-USDT
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the return semantics (imbalance normalization range, bps thresholds) and the pricing model (0.02 USDC per call via x402), which is genuinely useful cost context. It stops short of disclosing data freshness, snapshot vs streaming behavior, exchange/venue coverage, or whether repeated calls within a short window are cached or billed again.

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 dense sentences with zero filler — the first enumerates outputs, the second states cost, and the identifying information is front-loaded. Nothing here could be removed without losing content.

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 two-parameter read tool with no output schema, the description covers what the response contains well enough to decide whether to call it, and the x402 payment requirement is stated. Minor gaps remain around latency/freshness of the order book snapshot and failure modes (unsupported pair, unverifiable payment), which matter for an agent planning a call sequence.

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%, with the pair format and the two-step payment-proof flow fully documented in the schema itself. The description adds no additional parameter meaning (no guidance on pair naming quirks, symbol normalization, or whether paymentProof can be reused across calls), so the baseline 3 is appropriate.

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?

Uses a specific verb (aggregates) plus a concrete resource (spot order book depth) and enumerates the returned quantities: bid/ask notional at 10/25/50/100 bps, signed imbalance in [-1,1], liquidity walls, directional signal. The sibling tools (swap_quote_and_build, token_audit) occupy clearly different domains, so an agent can distinguish this from them without opening a schema.

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

Usage Guidelines3/5

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

Implied usage is visible from the outputs — an agent can infer this is for liquidity/depth and directional-signal analysis — but there is no explicit 'use when' statement, no exclusions, and no mention of when to prefer swap_quote_and_build instead. The payment note explains the calling mechanics rather than when to select the 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.