Skip to main content
Glama

AgentPay — trust routing + spend caps for x402 agents

open_interest

Read-only

Get total open interest in perpetual futures for any asset, with 1h and 24h change rates. Pairs with funding_rates to complete the derivatives picture — rising OI with high funding = overcrowded position.

Use when: You need to know total open interest in perpetual futures and whether it's rising or falling. Combine with funding_rates for a full derivatives picture. Not for: you need the funding cost of holding a position — funding_rates; a single trade verdict — pre_trade_check. Returns: total_oi_usd (sum of the venues listed in oi_venues), oi_change_1h_pct, oi_change_24h_pct, long_short_ratio (median across venues) with long_short_ratios per venue and long_short_spread, per-exchange breakdown Example response: {"asset":"ETH","price_usd":2069.73,"total_oi_usd":8415777792,"oi_venues":["Binance"],"oi_change_1h_pct":1.2,"oi_change_24h_pct":12.4,"long_short_ratio":1.08,"long_short_ratios":{"Binance":1.08,"OKX":1.11,"Gate.io":1.02},"long_short_spread":0.09,"exchanges":[{"exchange":"Binance","oi_contracts":4066123.5,"oi_usd":8415777792,"oi_change_1h_pct":1.2,"oi_change_24h_pct":12.4,"long_short_ratio":1.08}],"source":"binance/bybit/okx + gate/bitget (L/S)","primary":"binance"}

Price: $0.000 USDC per call

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

Input Schema

NameRequiredDescriptionDefault
assetNoToken symbol, e.g. 'BTC', 'ETH', 'SOL'BTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 adds substantive behavior beyond that: which venues contribute OI versus which only contribute long/short ratios ('binance/bybit/okx + gate/bitget (L/S)'), that long_short_ratio is a median across venues with a spread, and a full example payload. It stops short of stating staleness or what happens when a venue is unavailable, which keeps it off a 5.

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 structure is strong and front-loaded: purpose, pairing logic, use-when, not-for, returns, example. The one flaw is redundancy — 'pairs with funding_rates to complete the derivatives picture' is stated in the opening and restated almost verbatim in the 'Use when' block. The example JSON is large but earns its place given there is no output schema.

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 no output schema, the description carries the full burden of explaining return values, and it does so field by field plus a concrete example response. For a single-parameter read-only lookup, an agent has everything needed to call it and interpret the result, including the venue composition behind the aggregates.

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?

Only one parameter exists and schema coverage is 100%, so the schema already defines 'asset' with examples. The description adds nothing parameter-specific beyond 'for any asset'. Per the baseline rule for fully covered schemas, a 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 opens with a specific verb and resource: 'Get total open interest in perpetual futures for any asset, with 1h and 24h change rates.' It immediately differentiates itself from funding_rates by scoping to OI rather than funding cost, so an agent can separate the two without reading sibling schemas.

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

Usage Guidelines5/5

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

It provides an explicit 'Use when' clause and an explicit 'Not for' clause that names the correct alternatives (funding_rates for funding cost, pre_trade_check for a single trade verdict). It also suggests a combination pattern — rising OI plus high funding equals overcrowded positioning — which tells the agent how to sequence calls rather than just when to make one.

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.