Skip to main content
Glama

Hyperliquid Institutional Perps & Funding MCP

Get Hyperliquid L2 orderbook

get_hyperliquid_l2_orderbook
Read-onlyIdempotent

Fetch a live Level 2 orderbook snapshot with bid/ask ladders, mid price, and spread in basis points for one Hyperliquid perpetual market.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_hyperliquid_l2_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinNoPerpetual coin symbol (default "BTC"; e.g. "ETH", "SOL", "HYPE").
depthNoBid/ask levels per side (1-20, default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so safety is covered. The description adds that this is a point-in-time snapshot rather than a stream and specifies units for spread (basis points), which is meaningful behavioral context. It does not disclose error behavior for invalid markets, whether levels are aggregated, or any rate limits on a live endpoint.

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?

One well-formed sentence that front-loads the action and resource and packs return contents and scope without waste. Slightly dense but nothing is redundant.

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-only market data tool with full schema coverage and no output schema, the definition covers what it returns and its scope adequately. Minor gaps remain around ordering of levels, snapshot cadence, and failure modes for unknown symbols.

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%, with both parameters fully documented including defaults and bounds. The description reinforces the single-coin scoping but adds no new syntax or semantic detail beyond the schema, so the baseline 3 applies.

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 (fetch) plus resource (Level 2 orderbook snapshot) and enumerates the returned content: bid/ask ladders, mid price, and spread in basis points. The 'for one Hyperliquid perpetual market' scoping distinguishes it from sibling price/metadata tools.

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 clear from 'live snapshot' and single-market scoping, which suggests it is the depth tool versus the mid-price sibling. However, there is no explicit statement of when to prefer this over get_hyperliquid_all_mid_prices or any note about snapshot staleness or refresh expectations.

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.