Skip to main content
Glama

PerpFarms: Funding Rate Arbitrage

Best funding rate arbitrage pairs now

find_funding_arbitrage
Read-onlyIdempotent

Live funding rate arbitrage: long a coin's perpetual on one exchange and short it on another, delta-neutral, collecting the funding spread. Ranked by estimated profit after real trading costs (taker fees, bid-ask spread and slippage from live order books) at the given size and holding time, counted at what each pair has really been paying; risky pairs are left out unless asked. With sort=price_gap it ranks the same pairs by the widest price gap between their two exchanges instead (every pair on every exchange: perpfarms.com/price-arb). Each row links the PerpFarms pair page and both exchanges.

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

Input Schema

NameRequiredDescriptionDefault
dexNoany (default); one: at least one leg on a perp DEX; both: both legs on perp DEXs
coinNoTicker as exchanges list it, e.g. BTC, ETH, HYPE, TSLA
sortNoprofit (default): estimated profit after costs; apr_now: funding spread right now; paid_24h: funding actually paid over the last 24 hours; backtest_7d: what it paid over 7 days minus costs; steady: share of payments it earned; volume / open_interest: of the weaker leg; price_gap: widest price gap at entry (price arbitrage)
limitNoRows to return, default 5. Without a key at most 5, with a free key 20, with Pro 50
size_usdNoPosition size per leg in USD; costs come from the live order books at this size. Default 10000
exchangesNoOnly pairs with both legs on these exchanges (names like Binance, Hyperliquid, Lighter); one exchange alone: every pair with a leg on it
hold_daysNoDays you plan to hold the position. Default 7
asset_classNoOnly this kind of market: crypto, stock perps, ETFs, commodities, currencies, pre-IPO shares
include_riskyNoAlso show risky pairs: funding above 1% per 8h (usually a squeeze), prices more than 5% apart, or a leg being delisted. Default false
min_volume_usdNoLeast 24h trading volume on each leg, in USD
exclude_exchangesNoLeave these exchanges out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a read-only, idempotent, non-destructive, closed-world read. The description adds real behavioral detail beyond that: profit is net of taker fees, bid-ask spread and order-book slippage at the chosen size and holding period; ranking reflects funding actually paid rather than a snapshot; risky pairs (funding >1%/8h, >5% price gap, delisting leg) are filtered out by default. It does not describe result-set shape in detail, so 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.

Conciseness5/5

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

Three sentences, front-loaded with what the tool is, then the ranking/cost methodology and default exclusions, then the alternative sort mode. No filler; the trailing note about row links earns its place because no output schema exists.

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?

With 11 optional parameters and no output schema, the description carries a heavy load and mostly handles it: cost model, ranking default, risk filtering, and the price-gap mode are all covered. The row-level return shape is only partially described ('each row links the pair page and both exchanges'), leaving an agent to infer the remaining fields.

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 still adds meaning by tying size_usd and hold_days to how cost estimates are computed ('at the given size and holding time'), by explaining that risky pairs are omitted unless asked (include_risky), and by clarifying that sort=price_gap ranks the same pair universe on a different metric.

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 verb and resource: it screens live funding-rate arbitrage pairs (long perp on one exchange, short on another, delta-neutral) and ranks them by profit after real costs. The multi-exchange pair framing distinguishes it in spirit from single-coin siblings like coin_funding_rates, but no sibling is named explicitly, so it stops short of a 5.

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 well: default ranking is profit-after-costs, risky pairs are excluded unless include_risky is set, and sort=price_gap switches to a price-gap screen with an external link. However, there is no explicit routing guidance telling an agent when to prefer this over siblings such as check_pair or spot_perp_carry, and no when-not-to-use statement.

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.

Resources