Skip to main content
Glama

PerpFarms: Funding Rate Arbitrage

Spot-perp across exchanges (Pro)

cross_exchange_spot_perp
Read-onlyIdempotent

PerpFarms Pro: spot-perp carry across exchanges, buying the coin on spot on one exchange (Binance Alpha tokens included) and shorting its perpetual on another, where the funding and the price spread are often far bigger than on one exchange. Ranked by estimated profit after real costs, counting the spread between the spot and perp prices. Needs a Pro key; without one it says how to get Pro.

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

Input Schema

NameRequiredDescriptionDefault
coinNoTicker as exchanges list it, e.g. BTC, ETH, HYPE, TSLA
sortNoprofit (default), apr_now, paid_24h, price_gap: widest spot-perp price spread
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 these exchanges (names like Binance, Hyperliquid, Lighter)
hold_daysNoDays you plan to hold the position. Default 7
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

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?

The annotations already establish this is a safe, idempotent, non-destructive read. The description adds behavior that the annotations cannot: results are ranked by profit after real costs, and without a Pro key the tool still responds, telling the caller how to obtain Pro, which is valuable information about the degraded path.

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?

It is front-loaded with the mechanism, then the ranking and cost model, then the key requirement in a short final sentence. Nothing is wasted, though the long first sentence packs several ideas together.

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?

There is no output schema, but the description partly compensates by stating that the results are ranked by estimated profit and account for the spot-perp spread. Combined with the fully covered 7-parameter schema and the read-only annotations, this suffices for correct invocation, though it could spell out what a row contains.

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 coverage is 100%, so every parameter, including the enums and size_usd tiers, is already fully documented. The description only adds the ranking basis ('estimated profit after real costs'), which loosely maps to the sort options but adds no syntax or interpretation beyond the schema, so the baseline of 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?

The description names a concrete verb-and-resource: it finds spot-perp carry opportunities by buying spot on one exchange and shorting the perp on another. The parenthetical 'far bigger than on one exchange' implicitly differentiates it from the single-exchange sibling spot_perp_carry, but it never names that sibling explicitly.

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 context is implied by 'across exchanges' and by the Pro-key note, so an agent can infer this is the cross-venue screen. It stops short of saying when to prefer it over spot_perp_carry or check_pair, and gives no exclusion criteria beyond the Pro gate.

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