Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

OKX order book

market_okx_depth
Read-onlyIdempotent

Price-level ladder from OKX for one instrument with per-level contract count, plus the derived top-of-book spread. Costs $0.001 USDC per call. Byte-identical to GET /market/okx-depth?instId=BTC-USDT&levels=20.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instIdYesOKX instrument id, BASE-QUOTE (BTC-USDT, ETH-USDT-SWAP) [required]
levelsNolevels per side (max 25) (default 10)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
asksNo
bidsNo
noteNo
foundNo
staleNo
caveatNo
instIdNo
reasonNo
sourceNo
bestAskNo
bestBidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "asks": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "bestAsk": {
      +      "type": "string"
      +    },
      +    "bestBid": {
      +      "type": "string"
      +    },
      +    "bids": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "instId": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "ts": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

The description goes well beyond the read-only/idempotent annotations by disclosing a per-call cost ($0.001 USDC) and stating byte-identical equivalence to a specific REST endpoint. It also reveals the derived top-of-book spread, adding behavioral context that annotations alone do not convey.

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?

Three short sentences, each carrying distinct value: what the tool returns, what it costs, and exactly how it maps to a REST call. All critical information is front-loaded with no filler.

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?

For a two-parameter read-only tool with an output schema, the description covers purpose, scope, pricing, and endpoint identity. There is no significant missing information an agent would need to select or invoke this tool correctly.

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 the baseline is 3; both instId and levels are already documented with format and defaults. The description adds a concrete example URL with instId=BTC-USDT and levels=20, which is helpful but does not materially change parameter semantics.

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 names a specific resource (OKX order book), a precise data shape (price-level ladder with per-level contract count and top-of-book spread), and a scope ('one instrument'). It clearly differentiates this depth tool from sibling ticker, trades, and candles tools on OKX, and from depth tools on other exchanges.

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?

The description gives clear selection context: it is for OKX order-book depth for one instrument, which is enough to route an agent away from ticker, trade, and candle tools and from other exchanges' depth tools. It does not explicitly enumerate when not to use it or name alternatives, so it stops short of a 5.

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.

Resources