Skip to main content
Glama

get_funding_rate_arbitrage

Calculate BTC, ETH, and SOL perpetual funding-rate arbitrage spreads across Binance, Hyperliquid, and dYdX, net of round-trip fees over a chosen holding period.

Instructions

Get BTC/ETH/SOL perpetual funding-rate spreads across Binance, Hyperliquid and dYdX, net of fees over a holding period.

Cost: $0.10 USDC per call.
Freshness: near-real-time snapshot; check the timestamp in the response.
Inputs: fee_bps (float, default 0.0, range 0-1000) - round-trip trading fee in basis points; hold_hours (int, default 8, range 1-720) - how long the position is held.

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_funding_rate_arbitrage"
  }
}

Input Schema

NameRequiredDescriptionDefault
fee_bpsNo
hold_hoursNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the $0.10 USDC per-call cost, that results are a near-real-time snapshot whose timestamp should be checked, and that the spreads are net of fees over the holding period. It stops short of mentioning rate limits, authentication, or behavior when a venue is unavailable.

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 labeled lines (Cost, Freshness, Inputs) after a single-sentence purpose statement — front-loaded, scannable, and free of filler. Every line carries information an agent needs to decide and invoke correctly.

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?

An output schema exists, so return-shape explanation is rightly omitted, and the description still covers purpose, pricing, freshness and both parameters. It is nearly complete for a two-parameter analytics read; only edge behavior (venue outages, unsupported assets) is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: fee_bps is defined as round-trip trading fee in basis points with default 0.0 and range 0-1000; hold_hours as position holding duration with default 8 and range 1-720. This adds units, defaults and bounds that the bare schema does not convey.

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?

The description uses a specific verb and resource: 'Get BTC/ETH/SOL perpetual funding-rate spreads across Binance, Hyperliquid and dYdX, net of fees over a holding period.' It names the exact assets and venues, and the fee/holding-period framing distinguishes it from siblings like get_dex_stablecoin_arbitrage or get_prediction_market_arbitrage without needing the schema.

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?

It supplies context an agent needs before calling (cost per call, near-real-time freshness, parameter defaults), but it never states when to prefer this tool over an alternative or when not to use it. The guidance is implied by the parameters rather than explicit routing advice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.