Skip to main content
Glama

Hyperliquid Asset Context

hyperliquid_asset_context
Read-onlyIdempotent

Live perp market context for one contract, current funding rate, open interest, mark price, oracle price, mid price, 24h premium, and 24h notional + base volume, from Hyperliquid's public info API ({"type":"metaAndAssetCtxs"}, matched to the requested coin by universe index). This is the single call that answers "what is BTC perp funding right now" or "what is Hyperliquid's open interest in ETH", the live numbers next to kalshi_* and polymarket_* for anyone pricing crypto-adjacent prediction markets. For a HISTORY of funding rates rather than the current one, use hyperliquid_funding_history.

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": "BTC"
    },
    "name": "hyperliquid_asset_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesPerp symbol, e.g. "BTC", "ETH", "SOL". See hyperliquid_perp_meta for the full list.

Output Schema

NameRequiredDescriptionDefault
coinNo
as_ofNo
foundNo
sourceNo
premiumNo
mid_priceNo
mark_priceNo
funding_rateNo
max_leverageNo
oracle_priceNo
open_interestNo
prev_day_priceNo
day_base_volumeNo
funding_rate_noteNo
open_interest_unitNo
day_notional_volume_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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 the safety profile is covered. The description adds real context beyond that: the underlying public info API call (metaAndAssetCtxs) and that the coin is matched to the universe index, which explains why a bad symbol yields no data. It stops short of describing error behavior or rate limits.

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?

Front-loaded with the resource and field list, then usage, then the alternative. Dense and mostly waste-free, though the kalshi_*/polymarket_* clause is slightly promotional and could be trimmed.

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 explained, and the description covers source, scope, symbol resolution and the historical alternative. 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% and the single parameter is documented, so the baseline is 3. The description adds meaning by explaining the coin is resolved via universe index and by pointing to hyperliquid_perp_meta for the valid symbol list, which is genuinely useful beyond the schema.

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+resource (live perp market context for one contract) and enumerates the exact fields returned: funding rate, open interest, mark/oracle/mid price, 24h premium and volume. It also names the sibling it is not (hyperliquid_funding_history), so an agent can distinguish it without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use framing ('the single call that answers what is BTC perp funding right now') and an explicit exclusion routing to hyperliquid_funding_history for historical rates. The kalshi_*/polymarket_* comparison adds a concrete use case for pricing crypto-adjacent markets.

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.