Skip to main content
Glama

Perp Metrics

perp_metrics
Read-onlyIdempotent

Crypto perpetual futures snapshot in one call: funding rate, open interest, taker buy/sell volume (CVD) and long/short account ratio for a perpetual swap. Accepts exchange-style symbols such as 'MASKUSDT', 'MASK' or 'MASK-USDT-SWAP'. Figures come from the OKX venue and the response states that venue, so a symbol quoted on Binance or Bybit is answered with OKX's own contract for that coin, labelled as such.

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": "MASKUSDT",
      "buckets": 6
    },
    "name": "perp_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
instIdYesPerpetual symbol, 'MASKUSDT', 'MASK', 'MASK-USDT' and 'MASK-USDT-SWAP' all resolve to the same OKX contract.
periodNoBucket size for taker flow and long/short ratio: 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D. Default 5m.
bucketsNoHow many recent buckets of taker flow to sum for CVD. Default 24, max 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / instId / description
      Previous value: -"Perpetual symbol — 'MASKUSDT', 'MASK', 'MASK-USDT' and 'MASK-USDT-SWAP' all resolve to the same OKX contract."New value: +"Perpetual symbol, 'MASKUSDT', 'MASK', 'MASK-USDT' and 'MASK-USDT-SWAP' all resolve to the same OKX contract."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description earns credit for the non-obvious operational fact: results always come from OKX and the response labels that venue regardless of where the queried symbol is listed. That is a real behavioral disclosure an agent could not derive from the schema or annotations.

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?

Two sentences, front-loaded with the metric list, with no filler. The second sentence is long but carries the venue caveat, which is the highest-value information in the definition; only minor tightening would improve it.

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 carries the burden of describing returns, and it names all four returned series plus the venue field, which is adequate. It does not explain how the CVD aggregation interacts with period vs. buckets, but that is a minor omission for a read-only snapshot tool.

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 period options, bucket default/max and symbol resolution are already documented in the schema. The description's symbol-format discussion ('MASKUSDT', 'MASK', 'MASK-USDT-SWAP') largely repeats the instId schema text, adding no new semantics; baseline 3 applies.

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?

States a specific resource (perpetual futures snapshot) and enumerates the exact metrics returned: funding rate, open interest, taker buy/sell volume (CVD) and long/short account ratio. The 'in one call' framing distinguishes it in spirit from narrower siblings, but it never explicitly contrasts itself with the single-metric tools an agent might otherwise pick.

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?

'Snapshot in one call' implies the composite use case, and the venue paragraph implies when not to rely on it for other exchanges. However there is no explicit when-to-use/when-not statement or named alternative, so an agent must infer that the atomic per-metric tools exist for narrower needs.

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.