Skip to main content
Glama

Perp funding rates and open interest

perp_funding
Read-only

Fetch near-live Hyperliquid perpetual-futures metrics—funding rates, open interest, volume, mark/oracle basis, and leverage—to spot crowded longs/shorts and basis-trade opportunities.

Instructions

Near-live (up to 60 s old) perpetual-futures data from Hyperliquid for 200+ coins: funding rate (hourly and annualized), open interest, 24h volume and price change, mark vs oracle price and max leverage. Sort by funding, open interest or volume to spot crowded longs/shorts and basis-trade opportunities. Costs $0.001 per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
sortNoDefault open_interest.
coinsNoCoins, e.g. ["BTC","ETH","SOL"]. Default: the top markets.
limitNoMarkets to return when no coins are given (default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint, so the description carries real weight and delivers: data freshness (up to 60 s old), the upstream source (Hyperliquid), and a per-call cost of $0.001. Cost and staleness are exactly the traits an agent needs before calling. It stops short of stating rate limits or how failures/partial data are reported.

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?

Two dense sentences with no filler: capability and covered fields first, then the analytical use, then the price. The costly detail ($0.001 per call) is placed where an agent will see it before calling.

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?

For a read-only, zero-required-parameter query tool with full schema coverage and no output schema, the description covers source, latency, covered fields, cost and intended analysis. The one real omission is that it never says what the response looks like structurally, which matters slightly more here because no output schema exists.

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%, so the schema already documents sort, coins and limit, giving a baseline of 3. The description adds only a light gloss ('sort by funding, open interest or volume') and does not explain the funding_high vs funding_low semantics or how coins interacts with limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete resource (perpetual-futures funding rate, open interest, volume, price change, mark vs oracle, max leverage) with a named source (Hyperliquid) and scale (200+ coins). It is specific enough to be actionable, but it never differentiates itself from plausible siblings such as crypto_price or dex_token, leaving that inference to the agent.

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

Usage Guidelines3/5

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

'Sort by funding, open interest or volume to spot crowded longs/shorts and basis-trade opportunities' gives a use case rather than a when-to-use rule. There is no statement of when this tool is preferable to a spot-price or DEX-pool tool, and no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.