Skip to main content
Glama

Perp Funding Oi Weighted

perp_funding_oi_weighted
Read-onlyIdempotent

Each coin's current perpetual funding averaged across venues by their open interest: sum(rate per hour x oi_usd) / sum(oi_usd), as rate_8h and apr (fractions: 0.1 = 10 % a year; positive: longs pay shorts), with oi_usd (the open interest weighed, USD notional) and venues (the venues weighed). A venue counts when it printed a funding rate within the hour and has an open-interest print in dollars (binance, aster, bybit, okx, bitget, kucoin, hyperliquid, kraken, deribit); bingx, gate, lighter, mexc and weex carry no weight. Without symbol: every coin, largest open interest first. Per-venue rates: perp_funding.

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

Input Schema

NameRequiredDescriptionDefault
limitNoCoins, largest open interest first. Default 50, max 500.
symbolNoBase asset, e.g. 'BTC' (not 'BTCUSDT'). Omit for every coin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the aggregation methodology, unit conventions (USD notional, fractions where 0.1 = 10% a year), sign convention (positive means longs pay shorts), and the exact venue inclusion rule plus the named venues that carry no weight. That is behavioral detail an agent cannot get from annotations or schema.

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?

Front-loaded with the formula, then outputs, then venue weighting rules, then the no-symbol fallback. Prose is dense but every clause carries information; the venue list is long but materially affects the result, so it earns its place.

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?

There is no output schema, so the description must explain return values — and it does, naming each field and its units. For a two-parameter read-only aggregate it covers everything needed to call it and interpret the response.

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 coverage is 100%, so both parameters are already documented (default 50, max 500, base asset not pair). The description adds only the interpretation that omitting `symbol` yields all coins ordered by open interest, which slightly overlaps the schema text. Baseline 3 is appropriate.

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 gives a specific computation with an explicit formula: open-interest-weighted average of per-venue funding, returned as `rate_8h` and `apr`. It distinguishes itself from the sibling by name — 'Per-venue rates: perp_funding' — so an agent can route without inspecting schemas.

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?

It explains the two calling modes ('Without `symbol`: every coin, largest open interest first') and points at `perp_funding` for the non-aggregated alternative. It stops short of explicit when-not-to-use cases (e.g. coins with thin venue coverage), but the routing context is clear.

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.