Skip to main content
Glama

Okx Order Book

okx_order_book
Read-onlyIdempotent

OKX crypto exchange order book (bids + asks) for a spot/perp/futures instrument. Use for live depth-of-book on OKX-listed instruments.

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": "BTC-USDT"
    },
    "name": "okx_order_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
szNo
instIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/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 that the payload includes both bids and asks and that data is 'live' depth-of-book, but says nothing about snapshot vs streaming, how many levels are returned, pagination, or rate limits.

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 compact sentences with the resource definition front-loaded. The second sentence partially restates the first ('live depth-of-book' overlaps 'order book'), so it is not perfectly wasteful-free, but nothing is bloated.

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?

An output schema exists, so return-value documentation is not required. However, for a two-parameter market-data tool with zero schema description coverage, leaving 'sz' entirely undefined in both structured and unstructured fields is a real completeness gap.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the burden — and it does not meet it. 'instId' is at best implied by 'instrument', and the 'sz' parameter (presumably depth/levels) is never mentioned or explained anywhere in prose or schema.

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 with scope: an OKX order book containing bids and asks, covering spot/perp/futures instruments. An agent can distinguish this from okx_ticker or okx_trades by the 'bids + asks' framing, though no sibling is named explicitly.

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 for live depth-of-book on OKX-listed instruments' gives a usage context, but it is one-directional: there are no when-not conditions, no prerequisites, and no routing advice versus nearby tools like okx_ticker or okx_trades that also return market data.

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.