Skip to main content
Glama

Open Interest

open_interest
Read-onlyIdempotent

Open interest for a crypto perpetual swap or dated futures contract on the OKX venue, contracts outstanding, coin-denominated size and USD notional, with timestamp. Accepts 'MASKUSDT', 'MASK' or 'MASK-USDT-SWAP'. Use to size how much leverage is riding on a perp.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instId": "MASK-USDT-SWAP"
    },
    "name": "open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
instIdYes
instTypeNoSWAP (default), FUTURES or OPTION.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds value beyond them by disclosing the exact payload shape (contracts outstanding, coin size, USD notional, timestamp) and the venue, so the agent knows it is a snapshot read rather than a historical series.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the resource, venue and returned fields, followed by accepted identifier formats and a one-line use case. No marketing filler or repeated structured data.

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 correctly spends its words describing the returned fields and timestamp. Remaining gaps are minor: it never states whether instType interacts with the accepted instId forms (e.g., does 'MASK' imply SWAP) or whether the result is a single snapshot versus a series.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: instId has no schema description, so the description's enumeration of accepted forms ('MASKUSDT', 'MASK', 'MASK-USDT-SWAP') is the only source of that contract and meaningfully compensates. instType is documented in the schema itself (SWAP default, FUTURES, OPTION), so nothing is lost there.

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 (open interest) on a specific venue (OKX) and enumerates the returned fields (contracts outstanding, coin-denominated size, USD notional, timestamp), which is far more than a restatement of the name. It stops short of explicitly naming which sibling (funding_rate, long_short_ratio, mark_price) to prefer when the agent wants leverage context instead.

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?

'Use to size how much leverage is riding on a perp' supplies a concrete use case, which is more than most data tools get. There are no exclusions, prerequisites, or named alternatives (e.g., when to pick funding_rate or long_short_ratio instead), so routing guidance is only implied.

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.