Skip to main content
Glama

Perp Funding

perp_funding
Read-onlyIdempotent

Perpetual-futures funding rates. Pass symbol (e.g. 'BTC') to get current per-venue rates for one asset: funding_rate per settlement, interval_h between settlements, and the same rate as rate_8h and apr (fractions) so venues compare; interval_src says where interval_h comes from ('venue': the venue publishes it for the symbol, 'fixed': the venue settles every hour for every market, 'default': nothing published, 8 h assumed), and capped is true when the rate sits at the venue's published cap or floor for the symbol (null when the venue publishes none). funding_rate is the rate the venue quotes for its NEXT settlement (at next_ts), a running estimate on most venues until it settles. Each per-symbol row also carries settled history: avg_apr_7d / avg_apr_30d (the rates settled over the hours they paid for, a year: each settlement weighs by its own interval), cum_1d / cum_7d / cum_30d (the sum of the rates settled, what a long paid per unit of notional; negative: it was paid) and oi_usd (open interest, USD; null where we hold none in dollars). Besides the venues listing the base under its name, a symbol gathers Hyperliquid's HIP-3 markets on it ('xyz:NVDA', exchange 'hyperliquid', hourly; capped and the settled history null) and BingX's TradFi perps ('NCSKNVDA2USD'), each only while its price is the symbol's (a median gap over 7 days above 5 % is another asset under the ticker, left out); every row's venue_symbol is the venue's own name for the perp. symbol 'xyz:NVDA' answers that one HIP-3 market. Omit symbol to get top cross-venue funding-arbitrage opportunities (pre-ranked on the last SETTLED rate, normalised to daily %, spreads >= 0.3%). Each arb row includes long_exchange+long_daily_pct, short_exchange+short_daily_pct, spread_daily_pct, each leg's interval_h, interval_src, capped and next_daily_pct (its next-settlement rate, daily %), and the pair's settled history over the hours both venues settled: opportunity_age_h (hours in a row, back from the newest, the short leg out-paid the long by >= 0.3 % a day; 720 = all 30 days), stability_7d (the share of the last 7 days' hours it did, 0 to 1) and spread_avg_7d_daily_pct / spread_avg_30d_daily_pct. A halted or no-longer-polled venue (Coinbase International, halted 2026-10-01) is left out, and so is a venue silent for over an hour in the per-symbol list. Every venue row, and each arb leg (long_/short_), carries market_status: null while the market trades normally, 'delisting' when the venue has set a date to delist it (delist_ts, unix seconds), 'reduce_only' when it takes only orders that close a position, as the venue's own API says (binance, bybit, okx, bitget, gate, kucoin and aster publish it). For each coin's funding averaged across venues by open interest use perp_funding_oi_weighted.

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
symbolNoSpecific symbol (e.g. 'BTC'), or one HIP-3 market ('xyz:NVDA'). Omit for all symbols.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / symbol / description
      Previous value: -"Specific symbol (e.g. 'BTC'). Omit for all symbols."New value: +"Specific symbol (e.g. 'BTC'), or one HIP-3 market ('xyz:NVDA'). Omit for all symbols."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, and the description adds substantial context beyond that: interval provenance ('venue'/'fixed'/'default'), capped flags, next-settlement semantics, settled-history weighting, market_status values including delisting/reduce_only, and staleness/halt exclusion rules. The only shortfall is density rather than missing behavior — the disclosure is very rich, so withholding a 5 would be harsh but the sheer overload slightly reduces immediate usability.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Front-loaded with purpose, but the body is a single dense block of many clauses chained with semicolons and parentheticals, making it hard to scan. Most content earns its place given no output schema, yet it could be broken into structured sections (per-symbol fields vs. arb fields vs. exclusions) to improve readability.

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?

Given no output schema, the description carries the burden of explaining every returned field, and it does so thoroughly (funding_rate, interval_src, capped, avg_apr_7d/30d, cum_1d/7d/30d, oi_usd, arb-row fields, market_status). Complete enough to call and interpret correctly; the only gap is that the volume of detail is not organized for quick reference.

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 100%, so the baseline is 3, but the description adds real meaning: `symbol` accepts a HIP-3 market form ('xyz:NVDA'), gathers Hyperliquid HIP-3 and BingX TradFi perps under a base symbol with a 7-day median-gap guard, and clarifies that omitting it yields arbitrage ranking rather than a plain 'all symbols' listing (which sharpens the schema's terser wording). That is meaning beyond the schema, warranting a 4.

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?

Opens with a specific resource ('Perpetual-futures funding rates') and then defines both modes precisely: per-symbol per-venue rates and, when symbol is omitted, cross-venue funding-arbitrage opportunities. It explicitly names the sibling it is not (perp_funding_oi_weighted) at the end, so an agent can distinguish it without opening another 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 explicit routing: pass `symbol` for one asset's per-venue rates, omit it for pre-ranked arbitrage opportunities, and use perp_funding_oi_weighted for the OI-weighted cross-venue average. It also states exclusions (halted venues like Coinbase International, venues silent over an hour), which is when-not-to-expect-data guidance.

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.