Skip to main content
Glama

PerpFarms: Funding Rate Arbitrage

Real cost to trade BTC, ETH, SOL perps by exchange

trading_costs
Read-onlyIdempotent

The real cost of a round trip (open and close a market order) on each exchange's BTC, ETH or SOL perpetual at a given size: taker fee plus bid-ask spread plus price impact from the live order book, cheapest first, with each exchange's base taker and maker fees and a link.

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

Input Schema

NameRequiredDescriptionDefault
assetNoDefault BTC
limitNoRows to return, default 5. Without a key at most 5, with a free key 20, with Pro 50
size_usdNoOrder size in USD. Default 100000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already establish that this is a safe, read-only, idempotent operation, so the description appropriately focuses on behavior beyond safety. It adds useful context that the cost includes live order-book price impact, spread, and fees, and that results are sorted cheapest first with base taker/maker fees and a link. It does not mention data freshness, rate limits, or authentication-tier effects, which are minor gaps given the annotations.

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?

The description is a single dense sentence that front-loads the core purpose and then specifies cost components, sorting, and included reference data. Every clause contributes to understanding the tool, with no redundant or filler wording.

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?

For a no-output-schema comparison tool, the description is largely complete: it explains what is computed, how results are ordered, and what supplemental fee/link information is included. It could be stronger by noting data freshness or the practical limits implied by the schema, but it gives enough context for correct invocation.

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%, and each parameter already has an enum, default, bounds, and description. The tool description adds only the general notion of trading 'at a given size' and naming the supported assets, so it does not meaningfully extend parameter semantics beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 clearly states the specific computation: round-trip market-order cost per exchange for BTC, ETH, or SOL perpetuals at a given size, broken into taker fee, spread, and live order-book price impact, sorted cheapest first. It is unambiguous about the resource and output, though it does not explicitly differentiate itself from sibling tools such as funding-rate or carry comparisons.

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?

The purpose implies the tool is for comparing real trading costs across exchanges, and the 'cheapest first' ordering signals its main use case. However, there is no explicit when-to-use guidance, no mention of alternatives, and no exclusions for when another sibling tool would be more appropriate.

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