Skip to main content
Glama

Funding spread (paid, x402) — $0.004

get_funding_spread
Read-onlyIdempotent

Use when comparing crypto funding rates across venues for basis/carry or funding-arbitrage trades. Cross-venue crypto funding rates spread ($0.004/call, USDC on Base via x402). For 1-20 symbols (default BTC, ETH, SOL, HYPE, NEAR, AAVE) returns Hyperliquid and OKX funding (Binance/Bybit when reachable) normalized to hourly and APR, with spread = max minus min per symbol. Fewer than 2 venues or bad params: error, no charge. Example: GET https://cryptofeed402.site/funding/spread?symbols=BTC,ETH

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbols": [
        "BTC",
        "ETH"
      ]
    },
    "name": "get_funding_spread"
  }
}

Input Schema

NameRequiredDescriptionDefault
venuesNo
symbolsNoOptional; default watchlist

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "accepts": {
      +          "items": {
      +            "properties": {
      +              "amount": {
      +                "description": "USDC atomic units (6 decimals)",
      +                "type": "string"
      +              },
      +              "asset": {
      +                "type": "string"
      +              },
      +              "extra": {
      +                "type": "object"
      +              },
      +              "maxTimeoutSeconds": {
      +                "type": "number"
      +              },
      +              "network": {
      +                "const": "eip155:8453",
      +                "type": "string"
      +              },
      +              "payTo": {
      +                "type": "string"
      +              },
      +              "scheme": {
      +                "const": "exact",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "scheme",
      +              "network",
      +              "amount",
      +              "asset",
      +              "payTo"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "properties": {
      +            "description": {
      +              "type": "string"
      +            },
      +            "mimeType": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ],
      +      "title": "x402 PaymentRequired (what this MCP tool returns, isError=true)",
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "as_of": {
      +          "description": "ISO-8601 UTC",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "billing": {
      +          "description": "Charged only on this 200",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "provenance": {
      +          "description": "Optional provenance on paid 200s",
      +          "properties": {
      +            "data_sha256": {
      +              "type": "string"
      +            },
      +            "fetched_at": {
      +              "type": "string"
      +            },
      +            "max_age_s": {
      +              "type": "number"
      +            },
      +            "source": {
      +              "type": "string"
      +            },
      +            "sources": {
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "symbols": {
      +          "description": "Per symbol: symbol, venues[] (per-venue funding), spread{} (max-min)",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "unit_note": {
      +          "description": "How rates are normalized",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "billing",
      +        "disclaimer",
      +        "symbols",
      +        "unit_note"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /funding/spread",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/openWorld/non-destructive, and the description adds substantial context beyond them: the $0.004/call price paid in USDC on Base via x402, the venue set including fallback venues (Binance/Bybit when reachable), hourly/APR normalization, and the fact that bad params or fewer than 2 venues returns an error with no charge.

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?

The trigger condition is front-loaded, followed by price, mechanics, error behavior, and a concrete example URL. It is dense but every sentence carries information; only the price repeats the title slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, read-only data tool with an output schema already documenting return shape, the description covers what an agent needs: cost, payment rails, symbol limits, default symbols, venue coverage and fallbacks, normalization units, and failure/charge behavior.

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?

With only 50% schema coverage, the description compensates by naming the default watchlist (BTC, ETH, SOL, HYPE, NEAR, AAVE) and the 1-20 symbol range, plus which venues supply data. It does not explain the venues parameter's filtering effect in prose, though its enum is in the schema.

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 states a specific verb and resource: cross-venue crypto funding rate spread, with spread defined as max minus min per symbol. It also names the trading use case (basis/carry, funding arbitrage), which separates it from sibling series like get_extreme_funding or get_funding_changes 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 Guidelines4/5

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

'Use when comparing crypto funding rates across venues for basis/carry or funding-arbitrage trades' gives a clear trigger condition. It does not name an alternative sibling or state when not to use it, so it stops short of full routing guidance.

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