Skip to main content
Glama

Crypto Derivatives Data API

Perp funding rates by exchange (one coin)

perp_funding_rates
Read-only

Funding rates for perpetual futures (perp funding) of one coin across 8 exchanges: Bybit, Hyperliquid, dYdX, Gate, Kraken, Bitfinex, Deribit, OKX. Per venue the current funding rate, interval, 8h rate, APR, next funding time, mark and index; predicted funding incl. Binance and Bybit (via Hyperliquid); the last 24 hourly prints with avg/min/max/% positive. Perpetual swap funding for BTC, ETH, SOL and more. Data only. Bad input is free; under 3 venues not charged. Price: $0.003 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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": "perp_funding_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesCoin symbol: BTC, ETH, SOL, PEPE ... (also BTCUSDT, BTC-PERP, XBT, 1000PEPE, kPEPE).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare read-only/open-world/non-idempotent) by disclosing the full return payload per venue, the predicted-funding extension, 24 hourly prints with aggregate stats, and the commercial behavior: $0.003 per successful call, bad input free, under 3 venues not charged, payment via x402 USDC on Base in _meta["x402/payment"]. Cost and billing conditions are exactly the kind of context annotations cannot carry.

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?

Dense but front-loaded: resource and exchange scope come first, then payload contents, then billing. The telegraphic list style ('Data only.', 'Bad input is free; under 3 venues not charged.') is slightly clipped, but nearly every clause carries real 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?

With no output schema, the description takes on the return-shape burden and does so explicitly (current rate, interval, 8h rate, APR, next funding time, mark/index, predicted, 24 hourly prints with avg/min/max/% positive). Combined with pricing and payment mechanics, an agent has everything needed to call it and interpret the cost.

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?

Only one parameter with 100% schema description coverage, and the schema already documents accepted symbol variants (BTCUSDT, BTC-PERP, XBT, 1000PEPE, kPEPE). The description adds only that the coin is a single symbol ('one coin'), so baseline 3 applies.

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 specific resource (funding rates for perpetual futures) with a clear scope: one coin, eight named exchanges, plus predicted funding via Binance/Bybit. An agent can tell it is a per-coin current-funding lookup rather than a scanner or history tool, but the description never names a sibling (e.g. funding_rate_history or perp_screener) to make the boundary explicit.

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?

Usage is implied rather than stated: 'Perpetual swap funding for BTC, ETH, SOL and more' tells the agent what input shape fits, and the pricing/billing rules are given. There is no explicit when-to-use vs when-to-prefer funding_rate_history or perp_screener, and no stated exclusions.

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.