Skip to main content
Glama

Hyperliquid perp funding rate, predicted funding, open interest and basis for one market

hl_perp_metrics
Read-onlyIdempotent

Hyperliquid funding for one perpetual futures market: current and predicted funding rate, open interest and basis. Use when an agent monitors a perp position or funding carry. Input: coin (e.g. BTC, kPEPE). Output: JSON as_of, cache_age_s, 1h + annualized funding, OI coin/USD, mark/oracle/mid, basis %, premium, 24h volume and change, HL predicted funding, next funding time (cross-venue: /v1/crypto/perp/funding). Unknown coin: 400, not charged. Use instead: hl_funding_history for history and percentiles; crypto_perp_funding for the same coin across DEX venues; hl_markets for every Hyperliquid market. Example: ?coin=BTC Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "coin": "<coin>"
    },
    "name": "hl_perp_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesHyperliquid perp symbol, case-insensitive (BTC, ETH, SOL, HYPE, kPEPE). Not listed or delisted → 400 before payment (not charged)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description goes beyond it with cost ($0.002 per call, paid in USDC via x402 on five chains) and failure behavior (unknown/delisted coin returns 400 before payment, not charged). It also signals caching via the cache_age_s output field, though it does not explain cache TTL or freshness expectations, which leaves a small gap for a monitoring use case.

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 purpose, then input, output, errors, alternatives, example and price — a logical order with no filler sentences. The final line runs the example and pricing together ('Example: ?coin=BTC Price: $0.002 per call...'), which reads as a formatting slip and slightly blurs two distinct pieces of 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, and the description compensates by enumerating the returned JSON fields, including cache_age_s and cross-venue referral. With one fully documented parameter, pricing, error semantics and named alternatives all present, an agent has everything needed to call it 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% and the single coin parameter is fully documented there, including case-insensitivity and the 400-on-unknown-coin rule. The description's 'Input: coin (e.g. BTC, kPEPE)' largely restates the schema example, adding no new meaning; the only value is restating the error path. Baseline 3 applies when the schema does the heavy lifting.

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: Hyperliquid funding for one perpetual futures market, then enumerates the exact metrics returned (current/predicted funding, OI, basis, mark/oracle/mid, volume, next funding time). The final sentence names the sibling it is not (hl_funding_history, crypto_perp_funding, hl_markets), so an agent can separate it from adjacent catalog entries 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 Guidelines5/5

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

Gives an explicit use case ('when an agent monitors a perp position or funding carry') and routes three named alternatives to their conditions: hl_funding_history for history/percentiles, crypto_perp_funding for cross-DEX comparison, hl_markets for the full market list. When-to-use and when-not-to-use are both present.

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