Skip to main content
Glama

Read a model's order book

get_order_book
Read-onlyIdempotent

Read a model's order book

The model's order book as a seller sees it: the asks by price level, cheapest first (up to 20), what buyers pay and what a seller there earns (buyers pay divided by the fee), how many asks stand at each level, and which level is yours. Price against it: set your own price with the set_offer_pricing tool with { price } or follow the market. Refreshed every second; at most 10 reads a second (429 limit_reached). Never a name, a seller or a source. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.

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": {
      "model": "<model>"
    },
    "name": "get_order_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesThe model id, e.g. deepseek-v4.1-flash (URL-encode a slash: org%2Fmodel).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare a safe read (readOnlyHint, idempotentHint, non-destructive, closed-world), yet the description adds substantial behavior the agent couldn't infer: one-second refresh cadence, a hard 10 reads/second ceiling returning 429 limit_reached, a 403 not_seller authorization gate, a 20-level result cap, and the explicit privacy guarantee "Never a name, a seller or a source." Those operational and anonymization details are exactly the kind of context annotations can't carry.

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?

It is front-loaded with the purpose and then packs return shape, pricing guidance, refresh/rate limits, privacy, and auth errors into a compact block — every clause carries information. It is slightly dense as a single run-on paragraph, which costs a point on readability but not on economy.

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?

There is no output schema, so the description must describe the return value itself, and it does — field-by-field for each price level. Combined with the error codes (429, 403), freshness cadence, and privacy note, an agent has everything needed to call this 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 description coverage is 100% and the single `model` parameter is already documented with an example and URL-encoding instruction for slashes, so the schema does the heavy lifting. The description adds no further meaning about the parameter (e.g., no note on behavior for unknown model ids), so the baseline 3 applies.

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 opens with a specific verb+resource ("Read a model's order book") and immediately defines the return shape: asks by price level, cheapest first, capped at 20, buyer price plus seller net (buyers pay divided by the fee), depth per level, and the caller's own level. That level of specificity clearly separates it from siblings like get_offer or get_offer_health without needing to name them.

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?

It gives a concrete next action and names the alternative tool: "set your own price with the `set_offer_pricing` tool with { price } or follow the market." It also states a precondition (sellers only; non-accepted terms get 403 not_seller). What's missing is guidance on when to read the book versus reading a single offer via get_offer or get_offer_health, so it stops short of full when/when-not routing.

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