Skip to main content
Glama

Crypto Derivatives Data API

Open interest by exchange (one coin)

open_interest
Read-only

Open interest (OI) of one coin's perpetual futures by exchange: Bybit, Hyperliquid, dYdX, Gate, Kraken, Bitfinex, Deribit, OKX. Per venue OI in coins and USD and its share, the total, and the OI change over 1h, 4h and 24h from the venues' own history. Perp open interest and futures open interest for BTC, ETH, SOL and more. Data only. Bad input is free; under 2 venues (3 for a coin listed on 3+) not charged. Price: $0.003 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

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": {
      "coin": "<coin>"
    },
    "name": "open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesCoin symbol: BTC, ETH, SOL, PEPE ... (also BTCUSDT, BTC-PERP, XBT, 1000PEPE, kPEPE).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses material operational facts: it is data-only (read), it is metered at $0.003 per successful call via x402 (USDC on Base) with the payment passed in _meta["x402/payment"], invalid input is free, and results from under 2 venues (3 for coins listed on 3+) are not charged. It also describes the return content (per-venue OI in coins and USD, share, total, 1h/4h/24h change from venues' own history), which is essential since no output schema exists. Nothing here contradicts readOnlyHint=true or openWorldHint=true.

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 purpose is front-loaded in the first sentence and the operational/pricing caveats follow in a compact block. The venue enumeration is long but genuinely informative about coverage; a couple of phrases (the coin examples already in the schema) are slightly redundant.

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 no output schema, the description does the heavy lifting by naming the returned fields and the change windows, and it covers the paid-call mechanics needed to invoke it successfully. Remaining gaps are minor: no error/empty-response behavior beyond 'bad input is free', and no indication of latency or whether historical series beyond 24h are available.

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 the coin parameter already documents accepted alias forms (BTCUSDT, BTC-PERP, XBT, 1000PEPE, kPEPE). The description adds only the notion that a single coin is expected, not additional syntax or normalization rules, so this sits at the baseline for a fully documented one-parameter 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 resource (open interest of one coin's perpetual futures) and scope (per exchange, one coin), and names the covered venues (Bybit, Hyperliquid, dYdX, Gate, Kraken, Bitfinex, Deribit, OKX) plus the metrics returned. This is clearly distinguishable from siblings like derivatives_snapshot or perp_screener, which are multi-coin or cross-metric tools.

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 context is implied by 'one coin' and by the perp/futures framing ('Perp open interest and futures open interest for BTC, ETH, SOL and more'), so an agent can infer this is a single-asset lookup. However, no sibling is named and there is no explicit 'use this instead of X when Y' routing, leaving the agent to compare schemas.

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.