Skip to main content
Glama

Hyperliquid Mids

hyperliquid_mids
Read-onlyIdempotent

Live mid prices (midpoint of best bid/ask) for every asset Hyperliquid tracks, perps by symbol ("BTC", "ETH", ...) and spot pairs by numeric id ("@0", "@1", ...), in one call, from Hyperliquid's public info API ({"type":"allMids"}). This is the cheapest way to get a current price: one request returns 1,000+ symbols. Pass coin to get just one symbol's mid price instead of the full map.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
coinNoOptional, return only this symbol's mid price, e.g. "BTC" or "ETH". Omit to get the full map.

Output Schema

NameRequiredDescriptionDefault
coinNo
as_ofNo
foundNo
sourceNo
mid_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / coin / description
      Previous value: -"Optional — return only this symbol's mid price, e.g. \"BTC\" or \"ETH\". Omit to get the full map."New value: +"Optional, return only this symbol's mid price, e.g. \"BTC\" or \"ETH\". Omit to get the full map."
  2. First observed

TDQS

A4.5/5.0
Behavior4/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 upstream detail those fields cannot: the backing public info API call ({"type":"allMids"}), the ~1,000+ symbol response scale, and the distinct perp vs spot id namespaces. It does not discuss rate limits or freshness/latency of the mid, which keeps it off 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?

Front-loaded with what the tool returns and why it is preferred, then the narrowing option last; every sentence carries distinct information with no filler or repetition of the schema verbatim.

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?

An output schema exists, so return values need not be spelled out, yet the description still conveys response scale and symbol keying. For a single-optional-parameter read-only tool, nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning beyond it by explaining the two symbol namespaces (perps by ticker, spot by numeric "@N" id) and by restating that omitting `coin` returns the full map — a semantic choice the schema only implies.

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 and resource ("Live mid prices ... for every asset Hyperliquid tracks") and pins down the identifier conventions for both perps ("BTC", "ETH") and spot pairs ("@0", "@1"). It also contrasts itself with pricier alternatives ("cheapest way to get a current price: one request returns 1,000+ symbols"), so an agent can place it among the book/candle siblings.

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?

Gives clear when-to-use guidance (quick current-price lookups, bulk snapshot in one call) and an explicit narrowing path: pass `coin` for a single symbol's mid instead of the full map. It stops short of naming a concrete alternative tool for order-book depth or historical series, so it is clear context rather than full when/when-not routing.

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.