Skip to main content
Glama

Order Book Snapshot

flow_orderbook
Read-only

Order-book snapshot for one coin's perpetuals: best bid/ask, spread in bps, top-of-book depth (USD) per side, and bid/ask depth imbalance. Positive imbalance means more bid depth. Single-venue by nature — Hyperliquid, falling back to Bybit for coins it doesn't list; the response names the venue that answered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesCoin symbol, e.g. "BTC".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
asOfAtNoOrder-book timestamp, ISO-8601 UTC
asOfMsNoOrder-book timestamp, Unix epoch milliseconds
sourceNoVenue that served the book
symbolYes
spreadBpsNoBid/ask spread, basis points of mid
bestAskUsdNoBest ask price, USD
bestBidUsdNoBest bid price, USD
askDepthUsdNoTop-of-book ask depth, USD
bidDepthUsdNoTop-of-book bid depth, USD
midPriceUsdNoMid price, USD
imbalancePctNoSigned bid-vs-ask depth skew in percentage points (positive = more bids)

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses meaningful runtime behavior: the tool falls back from Hyperliquid to Bybit, the response names which venue answered, and positive imbalance means more bid depth. This gives the agent expectations that annotations alone do not capture.

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 compact sentences convey the metric set, polarity convention, venue fallback, and response naming behavior. The most important scoping information is front-loaded, and every sentence adds new information.

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?

Given a single required parameter, a high-coverage schema, an output schema, and a read-only annotation, the description covers the needed behavioral details: what the snapshot contains, how imbalance is signed, and which venue will respond. Nothing essential is missing for selecting and calling this tool.

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?

The sole parameter symbol is fully documented in the schema with an example, and the description reinforces that it is a coin symbol for a perpetuals contract. This meets the baseline of schema-driven coverage, but the description adds little extra semantic depth beyond 'one coin's perpetuals.'

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?

The description names a concrete resource — an order-book snapshot for one coin's perpetuals — and specifies what is included: best bid/ask, spread in bps, top-of-book depth, and imbalance. It also distinguishes itself by noting the single-venue Hyperliquid/Bybit fallback behavior, which sets it apart from broader market or multi-venue tools.

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 description makes the use case clear: retrieving current order-book liquidity and depth imbalance for a single coin's perpetuals. It does not explicitly name siblings or say when not to use it, but the 'single-venue by nature' warning helps an agent avoid treating it as a multi-venue comparison 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.

TDQS

A4/5.0
Disambiguation4/5

Tools are grouped by clear prefixes and mostly target distinct resources; market_quotes vs research_token_view, market_top_movers vs market_trending, and funding_current vs market_quotes have some field or purpose overlap, but descriptions draw enough scope boundaries for an agent to choose correctly in most cases. No two tools are truly interchangeable.

Naming Consistency5/5

All 30 tool names use lowercase snake_case with a consistent domain-prefix convention such as market_, flow_, research_, sentiment_, and catalysts_, making the surface predictable. Even helpers like utc_time and risk_position_size fit the same noun-oriented pattern without style mixing.

Tool Count2/5

At 30 tools this set crosses the 'too many' threshold, and several tools reproduce data already available through broader ones such as research_token_view and market_quotes. The breadth is defensible for a crypto-research platform, but the surface feels heavy and could be consolidated.

Completeness5/5

The tool set covers the read-only crypto research workflow thoroughly: market data, candles, derivatives, funding, OI, order book, whale flows, ETF flows, on-chain metrics, news, sentiment, prediction odds, technicals, regime/positioning scans, and position sizing. It also includes health and UTC helpers that close practical workflow gaps, with no obvious dead ends.

Resources