Skip to main content
Glama
order-flow-mcp

order-flow-mcp

by zadescoxp

Open interest & funding

get_derivatives
Read-only

Retrieve perpetuals positioning data—aggregate and per-venue open interest, funding rates, mark/index basis, and OI change regimes—to gauge market sentiment and spot long or short build-ups.

Instructions

Perpetuals positioning: aggregate and per-venue open interest, funding (native and 8h-normalized, annualized), next funding, mark/index basis, OI change over 1m/5m/15m/60m with the price × OI regime (new longs, short covering, new shorts, long unwind), and per-minute OI history.

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

Input Schema

NameRequiredDescriptionDefault
venueNo"all" (default, aggregate every venue listing the market) or one exchange: binance, bybit, okx, bitget, hyperliquid, deribit, coinbase, gate, kucoin, kraken, htx.
symbolYesAsset or symbol, e.g. "BTC", "ETHUSDT", "SOL-PERP".
market_typeNo"perp" (default) or "spot".
wait_secondsNoSeconds to wait for first data when a market is not streaming yet (default 10).
history_minutesNoMinutes of OI history (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description earns credit for disclosing data semantics beyond that, such as funding being both native and 8h-normalized/annualized and the price × OI regime classification. It does not disclose the streaming dependency implied by wait_seconds (what happens when a market is not streaming) or any latency/rate-limit behavior.

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 domain ('Perpetuals positioning'), then a dense enumeration of every returned metric with zero filler sentences. It reads as a long run-on list rather than cleanly separated clauses, but no sentence is wasted.

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 read-only analytics tool with no output schema, the description enumerates essentially all returned fields, which is what an agent needs to decide relevance. Remaining gaps are minor: no guidance on what venue='all' aggregation does with mixed quotes or what happens when the symbol is not listed on any venue.

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%, so every parameter is already documented with defaults and enums. The description adds only mild meaning — 'aggregate and per-venue' maps to the venue parameter and 'per-minute OI history' maps to history_minutes — which is baseline-level value for a fully documented 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?

The description names a specific resource family (perpetuals positioning) and enumerates the exact metrics returned: open interest, funding with normalization, next funding, mark/index basis, OI change windows, and the price × OI regime. An agent can tell this is the derivatives/positioning tool rather than trades, order book, or liquidations. It lacks an explicit verb and never names a sibling it should be preferred over, which keeps it short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the domain framing ('Perpetuals positioning'), which signals this is the right tool when the agent needs OI or funding data. However, there is no explicit when-to-use, no mention of when to pick this over get_market_snapshot or get_venue_comparison, and no note that most listed fields are irrelevant for spot despite market_type accepting 'spot'.

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