Skip to main content
Glama

funding arbitrage

funding_arbitrage
Read-only

Cross-exchange funding-rate spreads: predicted next funding for every perp on Hyperliquid, Binance and Bybit, normalised to an hourly and annualised rate, ranked by the gap between the highest and lowest venue, with which venue to short and which to long for a delta-neutral carry, plus Hyperliquid open interest and 24h volume as a liquidity check. Pass coin= for one market, or a minimum spread and open interest. $0.005. Costs $0.005 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
coinNoone market, e.g. ETH
limitNomax 50
min_annualizedNominimum spread in % per year, default 10
min_volume_24hNominimum Hyperliquid 24h volume in USD, default 250000
min_open_interestNominimum Hyperliquid open interest in USD, default 1000000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds genuinely non-obvious behavior: a $0.005 USDC charge via x402 per call and the shape of the output (ranked spreads, short/long venue, liquidity check). It stops short of covering rate limits, whether the $0.005 fragment and the later cost sentence are the same charge, or what happens with no qualifying spreads.

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?

Two dense sentences with the core purpose front-loaded, and no filler prose. The standalone '$0.005.' fragment is immediately restated in full by the following sentence, which is a small but real redundancy.

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 carries the burden of describing returns and does so adequately: normalised funding rates, spread ranking, suggested long/short venues, and Hyperliquid OI/24h volume. Payment terms are disclosed; missing only edge-case behavior (no qualifying spreads, coverage of venues whose markets lack predicted funding).

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 baseline is 3. The description adds one meaningful nuance the schema does not convey: 'coin= for one market, OR a minimum spread and open interest', i.e. two alternative filtering modes rather than a flat AND of all filters, but it does not explain units/defaults for limit or the interaction of the three threshold filters.

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 names a specific resource and analytic: cross-exchange funding-rate spreads across Hyperliquid, Binance and Bybit, normalised to hourly/annualised, ranked by venue gap, plus short/long leg recommendation and Hyperliquid OI/volume as a liquidity check. That scope ('cross-exchange', 'gap between highest and lowest venue') implicitly but clearly separates it from a single-venue funding lookup like perps_funding.

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 description tells the agent how to narrow the query ('Pass coin= for one market, or a minimum spread and open interest'), which is usage guidance but at the parameter level. It never states when this tool is preferable to a plain funding-rate tool, nor any exclusion or precondition beyond payment, so selection guidance is implied rather than explicit.

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