Skip to main content
Glama

Hyperliquid Funding History

hyperliquid_funding_history
Read-onlyIdempotent

Historical funding-rate payments for one Hyperliquid perp, timestamped funding rate and premium at each funding interval (hourly on Hyperliquid), from Hyperliquid's public info API ({"type":"fundingHistory"}). Use this to see how funding has trended (e.g. persistently positive BTC funding = longs paying shorts = crowded long), or to reconstruct realized funding cost over a window. For the CURRENT funding rate only, hyperliquid_asset_context is cheaper (one call, no window math).

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",
      "lookback_hours": 6
    },
    "name": "hyperliquid_funding_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesPerp symbol, e.g. "BTC", "ETH", "SOL".
end_timeNoWindow END, same formats as start_time. Defaults to now.
start_timeNoWindow START, ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now.
lookback_hoursNoWindow length ending now, in hours (default 24, funding pays hourly so this returns ~1 row/hour). Ignored when start_time is given.

Output Schema

NameRequiredDescriptionDefault
coinNo
countNo
foundNo
sourceNo
fundingNo
end_timeNo
start_timeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / end_time / description
      Previous value: -"Window END — same formats as start_time. Defaults to now."New value: +"Window END, same formats as start_time. Defaults to now."
    • changedInput schema / properties / start_time / description
      Previous value: -"Window START — ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now."New value: +"Window START, ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now."
  2. First observed

TDQS

A4.3/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 openWorld, so the safety profile is covered. The description adds genuinely new behavioral facts: funding pays hourly on Hyperliquid, results come from the public info API type 'fundingHistory', and the current-rate alternative is cheaper. It doesn't mention rate limits or volume at long windows, hence not 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?

Three sentences, front-loaded with what the tool returns, then usage, then the cheaper alternative. The parenthetical API tag ({"type":"fundingHistory"}) and the crowding example are slightly ornamental but generally earn their place for an analyst audience.

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

Completeness4/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-shape detail is correctly omitted; scope, granularity, window handling and the alternative tool are all covered. Only edge-case behavior for very long windows or large responses is left unaddressed.

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 description coverage is 100%, so coin, start_time, end_time and lookback_hours are already documented; baseline 3 applies. The description only indirectly reinforces window semantics via 'reconstruct realized funding cost over a window' and 'one call, no window math', adding little that the schema doesn't already state.

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?

The description names a specific verb and resource ('Historical funding-rate payments for one Hyperliquid perp') plus the granularity (timestamped rate and premium at each funding interval) and the upstream source. It is immediately distinguishable from hyperliquid_asset_context and hyperliquid_candles 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?

It gives two concrete use cases (spotting funding trend/crowding, reconstructing realized funding cost over a window) and an explicit exclusion routing to hyperliquid_asset_context when only the current rate is needed, with a reason ('one call, no window math').

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.