Skip to main content
Glama

iafri x402 APIs

hl_l2_spreads

Read-only

Live Hyperliquid L2 orderbook best bid/ask spread & top-of-book depth across major pairs. Price $0.01 per call via x402, USDC on Base.

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": "hl_l2_spreads"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional max liquid perp L2 snapshots to return (default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover only readOnlyHint=true (safety profile), and the description adds genuinely useful behavior beyond that: the data is live, and each call costs $0.01 via x402 settled in USDC on Base, which is critical pre-invocation context. It does not disclose freshness/latency, whether results are cached, or which pairs constitute "major", so it stops short of a 5.

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 sentences, front-loaded with what the tool returns, followed by the mandatory cost/auth detail. No redundant restatement of the tool name and nothing extraneous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with one optional parameter and no output schema, the description should still convey roughly what a response looks like and which pairs are covered. It names the metrics returned but leaves the pair universe and the result shape (per-pair rows vs. flat snapshots) unstated, and the perp-vs-pair framing conflicts mildly with the schema.

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% and only one optional parameter exists, so the schema already documents `limit` (max snapshots, default 10). The description adds nothing about the parameter, and in fact creates mild ambiguity: it says spreads are reported per "major pair" while the schema frames the unit as "liquid perp L2 snapshots", leaving unclear whether `limit` counts pairs or snapshots. Baseline 3 is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the specific resource (Hyperliquid L2 orderbook best bid/ask spread plus top-of-book depth) and the scope (major pairs, live). An agent can tell this is an orderbook/spread feed rather than the sibling signal tools (hl_breakout_signals, hl_funding_alpha). It does not explicitly contrast itself with those siblings, which keeps it below a 5.

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?

Usage is only implied by the content: call it when live spread/top-of-book depth is needed. There is no statement of when not to use it, no alternative named for historical or per-venue depth, and no prerequisite described other than price. Minimum-viable guidance.

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