Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Market order book

market_orderbook
Read-onlyIdempotent

Fetch an order book for a symbol, including best bid/ask and depth, to price limit orders using read-only market data.

Instructions

Get the order book for one symbol, including best bid/ask and depth. Use it to price limit orders. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "market_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoNumber of price levels per side (default: all)
symbolYessymbol
networkNoNetwork override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and idempotency profile is fully structured. The trailing "Read-only" merely restates the annotation and the description adds nothing about rate limits, snapshot semantics, or whether the book is live or delayed — acceptable but thin given the annotations do the heavy lifting.

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?

Three short sentences with the core capability front-loaded and no filler. The only wasted element is the closing "Read-only," which duplicates an annotation rather than informing the agent.

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 tool with full schema coverage this is close to sufficient, but with no output schema the description could have said what the returned book looks like (bid/ask arrays, level counts, ordering). As written, the agent knows why to call it but not the shape of what comes back.

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 description coverage is 100%, so symbol, depth and network are already documented, and the default for depth (all levels) is stated in the schema itself. The description's "including ... depth" only loosely gestures at what the depth parameter controls and says nothing about the network override, so it does not meaningfully exceed the 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?

The description gives a specific verb and resource ("Get the order book for one symbol") and enumerates what the response covers (best bid/ask and depth). It implicitly separates itself from market_price and kline by scoping to the full book rather than a last price or candles, though it never names those siblings directly.

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?

It offers one concrete use case, "Use it to price limit orders," which anchors the tool in a workflow. However, there is no when-not guidance, no prerequisites, and no explicit mention of market_price as the cheaper alternative when only a mid/last price is needed, leaving the agent to infer the boundary.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.