Skip to main content
Glama
funding-arb-screener

funding-arb-screener

by tordagaz-ops

Summarise a pair's funding history

get_funding_history
Read-only

Retrieve historical funding rates and summary statistics for a perpetual-futures pair on one exchange to check whether a funding edge is persistent or a single print before trusting a scan result.

Instructions

Return the funding-rate history of one pair on one exchange with summary statistics: mean, median, standard deviation, share of positive periods, best and worst period, cumulative funding over the window and the annualized mean. Use it to check whether a funding edge is persistent or a single print before trusting a scan result. Example: symbol='ETH/USDT', venue='binance', points=50.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "get_funding_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueNoExchange to read the history from: bybit, binance, okx, bitget or gate. Default bybit.bybit
pointsNoHow many historical funding periods to return. Default 20, maximum 200.
symbolYesPair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds useful context that the response is aggregations over a window rather than a raw series. However, it does not disclose per-venue availability differences, failure behavior for an unsupported symbol/venue pair, or whether unknown symbols error or return empty — a real gap for a cross-exchange (open-world) read.

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?

Three sentences, front-loaded with the return content, then usage, then a compact example. The stat enumeration is long but each item is a distinct returned metric, so it mostly earns its space; the example could arguably be dropped given the schema docs.

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 an output schema present, the description need not explain return values, and it covers purpose, window semantics implicitly, and a canonical call. Remaining gap is operational edge behavior (invalid venue/symbol, venue gaps in history) for a cross-exchange read.

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% and every parameter is documented there, including valid venue values and the max of 200, so the baseline is 3. The worked example (symbol='ETH/USDT', venue='binance', points=50) shows the parameters working together but adds little meaning beyond the schema's documented spellings and defaults.

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?

States a specific verb and resource ('Return the funding-rate history of one pair on one exchange') plus exactly what the payload contains (mean, median, std dev, share of positive periods, best/worst, cumulative, annualized mean). The scope 'one pair on one exchange' distinguishes it from the portfolio-level scan sibling.

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 a concrete decision context: 'Use it to check whether a funding edge is persistent or a single print before trusting a scan result,' which implicitly routes agents here after scan_funding_opportunities flags something. It does not explicitly name or exclude a sibling (e.g., get_funding_rates for raw series), so the contrast is inferred rather than stated.

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