Skip to main content
Glama

PerpFarms: Funding Rate Arbitrage

Check one funding pair

check_pair
Read-onlyIdempotent

Live numbers for one specific trade: a coin, the exchange to go long on and the exchange to go short on. Gives each leg's funding rate and next payment, the spread, what the pair actually paid over the last 24 hours and 7 days (day by day), the cost in and out at the given size, break-even time, estimated profit, the price gap, volume, open interest and any risk flags, with the PerpFarms pair page and both exchange links. Also says when the other direction is the one that earns.

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>",
      "long_exchange": "<long_exchange>",
      "short_exchange": "<short_exchange>"
    },
    "name": "check_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesTicker as exchanges list it, e.g. BTC, ETH, HYPE, TSLA
size_usdNoPosition size per leg in USD; costs come from the live order books at this size. Default 10000
hold_daysNoDays you plan to hold the position. Default 7
long_exchangeYesExchange of the long leg (or the spot buy)
short_exchangeYesExchange of the short perp leg

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is the rest — and it delivers an unusually complete inventory of what comes back: per-leg funding and next payment, spread, realized 24h/7d payouts day by day, cost in/out at size, break-even, profit estimate, price gap, volume, open interest, risk flags and links. It also discloses a directional caveat ('says when the other direction is the one that earns'), which is genuinely behavioral. It stops short of stating failure modes for unsupported coins/exchanges or how fresh the 'live' data is, keeping it at 4.

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 the core purpose and sized reasonably given the volume of information conveyed. The long output enumeration is dense and would read better as a list, but nearly every clause carries distinct information rather than padding.

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 no output schema, the description correctly carries the full burden of explaining return values, and it does so comprehensively enough for an agent to decide whether the payload answers its question. Only error behavior for unknown coins or unsupported exchange pairs is left unaddressed.

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 description coverage is 100%, so the enum of size_usd and the 1–30 day bound on hold_days are already fully documented. The description adds only that costs are derived 'at the given size' and that hold_days feeds break-even and profit, which is marginal beyond the schema — baseline 3.

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 verb+resource: 'Live numbers for one specific trade' defined by coin, long exchange and short exchange. The scoping phrase 'one specific trade' implicitly separates it from scanning siblings like find_funding_arbitrage, but no sibling is named, so it lands at 4 rather than 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 only implied: an agent infers it should call this once it has already picked a coin and exchange pair, whereas the sibling family suggests scanning tools handle discovery. There is no explicit when-to-use, when-not, or named alternative.

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