Skip to main content
Glama

Hyperliquid funding rate history: percentiles, z-score, averages and open-interest change

hl_funding_history
Read-onlyIdempotent

Use when an agent judges whether a perp's funding is unusually high or low, or tracks open-interest build-up. Input: coin (e.g. BTC), hours (24-720, default 168). Output: current 1h funding and APR, 24h/7d/30d average APR, current percentile and z-score vs 7d and 30d, share of positive hours, downsampled series, open interest now and change 1h/24h/7d (from our 5-minute snapshots). Use instead: hl_perp_metrics for current values only; hl_extremes for scanning all coins for unusual funding. Example: ?coin=BTC&hours=168 Price: $0.004 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_funding_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesHyperliquid perp symbol (BTC, ETH, SOL, HYPE, kPEPE). Not listed → 400 before payment
hoursNoWindow of the returned series in hours (24-720, default 168); statistics always cover 7 and 30 days

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.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/openWorld, and the description adds real context beyond them: the granularity of the underlying data (5-minute snapshots), a hard failure mode (unlisted coin returns 400 before payment), and a per-call price of $0.004 paid in USDC over x402 on named chains. It stops short of describing caching, rate limits, or latency, which keeps it from 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the usage trigger, then input, output, alternatives, example, and pricing in a compact block. It is dense but nearly every clause carries information; the pricing sentence is somewhat tangential to tool selection but is legitimately useful for an agent deciding whether to call.

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?

With no output schema, the description carries the full burden and discharges it by enumerating the returned fields (current funding and APR, multi-window average APR, percentile and z-score vs 7d and 30d, positive-hour share, downsampled series, open interest and its 1h/24h/7d change). An agent knows what it will get before paying.

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 already 100%, so the field docs carry the basics. The description adds meaning beyond them by clarifying that hours only window the returned series while statistics always cover 7 and 30 days, which resolves an ambiguity the schema leaves open, plus a concrete call example.

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: funding-rate history for a perp, with percentiles, z-scores, averages and open-interest change. It explicitly separates itself from hl_perp_metrics (current values only) and hl_extremes (scanning all coins), so an agent can pick it without opening either 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?

Opens with an explicit when-to-use condition (judging whether funding is unusually high/low, or tracking OI build-up) and follows with a 'Use instead' clause naming the two alternatives and the condition that selects each. No exclusions are left to inference.

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