Skip to main content
Glama

Crypto order book, Hyperliquid: bids, asks, spread and depth of a perp

hyperliquid_orderbook
Read-only

Live order book of a Hyperliquid perpetual (BTC, ETH, SOL, HYPE…): the best bid and ask levels with price, size and order count, the mid price, the spread in USD and basis points, and the summed depth on each side. Up to 20 levels a side (default 10). Read from Hyperliquid's public API. Use to judge liquidity and slippage before a trade, or for market-making and arbitrage checks. Example: coin=BTC. Price $0.002/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
coinNoCoin symbol such as BTC, ETH, SOL or HYPE (default BTC)
levelsNoLevels per side, 1-20 (default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and open-world, and the description reinforces that nothing is changed. Beyond annotations it adds the information an agent most needs to know: per-call cost, a 25-call free tier, failed calls free, and the 20-level cap, which also explains why idempotentHint=false despite being a read (repeat calls incur charges). It stops short of stating data freshness or latency.

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?

Purpose and returned fields are front-loaded in the first sentence, with usage and cost following, so the ordering works. The pricing/billing tail is denser than strictly needed for tool selection and slightly blurs the focus, though it is genuinely actionable 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?

There is no output schema, so the description carries the return-shape burden itself — and it does so by enumerating bids, asks, mid, spread in USD and bps, and summed depth per side. Combined with the level cap, source (public API) and cost model, an agent has everything needed to call this correctly.

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 both parameters (coin, levels) are already fully documented with defaults and the 1-20 range, establishing the baseline of 3. The description only restates the defaults and adds a redundant 'Example: coin=BTC' rather than adding new meaning.

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 specific verb and resource — the live order book of a Hyperliquid perpetual — and enumerates the delivered fields (best bid/ask with price, size, order count, mid, spread in USD and bps, per-side depth). That is enough to separate it from siblings such as hyperliquid_prices, hyperliquid_candles, hyperliquid_market and polymarket_orderbook 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?

It gives concrete use cases: judging liquidity and slippage before a trade, market-making and arbitrage checks. It does not name an explicit alternative or a when-not condition (e.g. use hyperliquid_prices for a spot quote), so routing is clear but not fully disambiguated.

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