Skip to main content
Glama

Long Short Ratio

long_short_ratio
Read-onlyIdempotent

Long/short account ratio for a crypto perpetual contract on the OKX venue, the ratio of accounts holding longs to accounts holding shorts, bucketed by period. A value above 1 means more accounts sit long. Use for positioning and crowd-sentiment reads 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",
      "period": "5m",
      "buckets": 24
    },
    "name": "long_short_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
instIdYes
periodNo5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H or 1D. Default 5m.
bucketsNoRecent buckets to return. Default 24, max 100.

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 readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds genuine interpretive context beyond that: the ratio compares accounts holding longs vs. shorts and a value above 1 means more accounts are long, which is the key semantic an agent needs to read the result. It does not mention data freshness or limits, keeping it out of the 5 band.

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: the first defines the metric and its venue, the second gives the interpretation rule and the use case. Nothing is redundant and the definition is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only metric with no output schema, the description should at least hint at the return shape (e.g., a series of ratio values per timestamp bucket), which it does not. The definition and interpretation are complete, but an agent cannot anticipate the response structure without calling it.

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 67%: period and buckets are documented in the schema with defaults and ranges, while instId is a bare string with no description. The phrase 'crypto perpetual contract on the OKX venue' partially compensates by signaling that instId is a perp instrument identifier, and the schema examples reinforce the format, but the description never spells out the expected ID format.

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 metric (long/short account ratio), the asset class (crypto perpetual contract), the venue (OKX), and the bucketing behavior. This is clearly distinguishable from siblings like funding_rate, open_interest, or mark_price because it names the exact quantity measured. It stops short of explicitly contrasting itself with those siblings.

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

Usage Guidelines4/5

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

'Use for positioning and crowd-sentiment reads on a perp' gives a clear intended use case. There is no explicit when-not-to-use clause or named alternative (e.g., open_interest for sizing rather than account counts), so it does not reach the top band.

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.