Skip to main content
Glama

get_perp_funding_rates

Read-onlyIdempotent

Perpetual funding rates by venue and market (Binance, OKX), largest open interest in USD first. Positive funding means longs are paying to hold; negative means shorts are. Pass symbol (the base asset, e.g. BTC) and/or venue to narrow it. Results are one page: limit 1-100 (default 25), offset 0-10000; pass next_offset to get the next page. Use it when the user asks about perp funding, crowded positioning or leverage bias.

[Access: pay 0.01 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing 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": "get_perp_funding_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results.
venueNoExchange the perp trades on, e.g. Binance or OKX, case-insensitive.
offsetNoPagination offset in the result units documented by the tool; zero starts the first page.
symbolNoAsset symbol, e.g. BTC or ETH.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 25,
      +  "description": "Maximum results.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Pagination offset in the result units documented by the tool; zero starts the first page.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / symbol
      Added value: +{
      +  "description": "Asset symbol, e.g. BTC or ETH.",
      +  "type": "string"
      +}
    • addedInput schema / properties / venue
      Added value: +{
      +  "description": "Exchange the perp trades on, e.g. Binance or OKX, case-insensitive.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: result ordering by open interest, single-page pagination with limit 1-100 and offset 0-10000, and a payment/auth model (0.01 USDC via x402 PAYMENT-SIGNATURE or API key, auto-paid by capable clients). Cost and auth behavior are exactly the kind of thing annotations cannot convey.

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 what the tool returns and the ordering, followed by scoping and pagination, then a bracketed access note. Every section carries information, though the pagination detail is dense enough that the access/cost note competes for attention.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a data-retrieval tool with no output schema, the description explains ordering and pagination but never says what fields come back (funding rate, venue, symbol, open interest, timestamp), which an agent needs to reason about the response. Auth and filtering are well covered, so it is adequate but has a real gap on return shape.

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; the description earns more by clarifying that symbol is the base asset (BTC, not a pair), that symbol and venue are combinable filters, and by supplying range constraints (limit 1-100 default 25, offset 0-10000) that the schema lacks. It slightly muddies things by referencing 'next_offset,' which is not an actual parameter in the schema.

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 (perpetual funding rates) plus the axis (venue and market) and the ordering rule ('largest open interest in USD first'). It also interprets the metric (positive funding = longs paying), so an agent knows exactly what the values mean without opening the schema. Sibling differentiation is implicit but effectively handled by naming the venues and the perp-specific domain.

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

Usage Guidelines4/5

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

'Use it when the user asks about perp funding, crowded positioning or leverage bias' gives clear trigger conditions, and 'Pass symbol and/or venue to narrow it' tells the agent how to scope the call. No explicit when-not-to-use or named alternative (e.g. get_lending_rates, get_smart_money_perp_trades) is given, so it falls short of a 5.

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.