Skip to main content
Glama

Funding gap

funding_gap
Read-onlyIdempotent

Best cross-venue perpetual funding arbitrage spreads across Hyperliquid vs Binance, Bybit, Bitget and Gate, net of base-tier taker fees over 24h. $0.01 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.

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

Input Schema

NameRequiredDescriptionDefault
paymentNoa signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial behavior the annotations do not carry: the tool is paywalled at $0.01 per call, accepts x402 payment in USDC on Arc/Base/Solana or XNT on X1, and requires a two-call handshake with a wallet-signed payment. The 24h window and base-tier taker-fee assumption also disclose how the spread is computed. It stops short of describing what an invalid or expired payment does or how many spreads are returned.

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?

Two tight sentences, front-loaded with the value proposition and followed by cost and payment mechanics. No filler, no restatement of the title, and the actionable payment sequence comes last where it belongs.

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 paid, single-parameter query tool with no output schema, the definition covers the commercial workflow, price, and accepted payment rails adequately. The one remaining gap is that an agent cannot tell what the response looks like (e.g. ranked spread list vs single best venue pair), which matters since no output schema exists.

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

Parameters4/5

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

Only one optional parameter exists and the schema documents it at 100% coverage, so the baseline is already high. The description goes beyond the schema by explaining the two-phase usage of `payment`: omitted on the first call to fetch terms, supplied on the second to complete the purchase inside the call.

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?

Names the concrete resource and method: cross-venue perpetual funding arbitrage spreads across Hyperliquid, Binance, Bybit, Bitget and Gate, net of base-tier taker fees over a 24h window. That is specific enough to know what data comes back, but it never contrasts itself with the sibling perp_funding, so an agent must guess which of the two to call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit operational sequence: call once without `payment` to get terms, sign with your own wallet, call again with `payment`. That removes ambiguity about invocation order. It does not state when this tool is preferable to perp_funding or other funding-related siblings, so selection guidance is only partial.

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