Skip to main content
Glama

Funding spread (paid, x402) — $0.005

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.005/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.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, and the description layers on real operational context: cost ($0.005/call, USDC on Base via x402), charging policy (no charge on error or fewer than 2 venues), venue availability including conditional Binance/Bybit, and normalization to hourly and APR.

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?

Content is front-loaded with the use case, followed by output semantics, pricing, error policy, and a concrete example URL. Minor redundancy exists in restating the price already present in the title and repeating 'funding rates spread', but nothing is materially wasteful.

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?

With an output schema present, the description needn't document return shape, yet it still explains the spread formula, venue coverage, defaults, and pricing/error behavior. An agent has everything needed to decide to call it and to construct a valid request.

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?

Schema coverage is only 50% and the venues parameter has no description in the schema, but the description compensates by naming the venues returned and their reachability caveats. It also expands on symbols with the default watchlist (BTC, ETH, SOL, HYPE, NEAR, AAVE) and the 1-20 range, adding meaning beyond the raw schema.

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?

States a specific verb and resource ('Cross-venue crypto funding rates spread') and defines the computation precisely: 'spread = max minus min per symbol' across Hyperliquid and OKX. This distinguishes it from history or single-venue tools, though it does not explicitly name the nearest sibling (get_extreme_funding) that an agent might confuse it with.

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?

Opens with an explicit use case: 'Use when comparing crypto funding rates across venues for basis/carry or funding-arbitrage trades.' That gives a clear selection context, but there is no when-not guidance or named alternative for single-venue or historical queries.

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.