Skip to main content
Glama

List this session's orders

order_list
Read-onlyIdempotent

List the orders created in this session, each with its live status.

Scoped to this session's own Order Records: an order placed in another session, or by another caller, is not listed here — it is reached through order_get with the customer's reference + email. Whenever you tell the customer that only this conversation's orders can be shown, also tell them they can see any other order of theirs by giving its order reference and the email they used at checkout. last is false when the session has more orders than one call shows (only the most recent are returned); total_elements is the session's true order count, so a false last means older orders exist beyond the list.

Returns a job — poll until SUCCEEDED. On failure the job error is RendrealNotConfiguredError (no client) or a Rendreal*Error — the latter only when every listed order's status read fails (a systemic outage); one failed read degrades that row to a null status and the job still succeeds. An order deleted upstream is omitted from the list entirely (and from total_elements), never shown as a pickable row.

The widget's picker commits an ordinal reference with the order's status attached for disambiguation (e.g. "Nr 2 - Complete, please.") rather than an id — 1-indexed against this same call's orders list, in order. Map the number back to that list position's order_id before calling order_get (these are this session's own orders, so no email is needed); don't match on status alone (several orders can share one).

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": {
      "session_id": "<session_id>"
    },
    "name": "order_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world safety, and the description adds substantial non-obvious behavior: the call returns a job that must be polled to SUCCEEDED, which errors signal systemic failure (`RendrealNotConfiguredError`, `Rendreal*Error` only when every status read fails), and that a single failed read degrades to a null status while the job still succeeds. It further discloses that upstream-deleted orders vanish from both the list and `total_elements` rather than appearing as pickable rows.

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?

Purpose is front-loaded and the paragraphing separates routing, pagination semantics, job/error behavior, and the picker-reference mapping. It is longer than typical and repeats 'this session's own orders' several times, but each block carries distinct operational information rather than 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?

An output schema exists, yet the description still supplies the semantics an agent cannot infer from field types — that a false `last` means older orders exist beyond the page and that `total_elements` is the true session count. Combined with the job-polling requirement and the ordinal-to-`order_id` mapping rule, an agent has everything needed to call and interpret this tool correctly.

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

Parameters4/5

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

Schema description coverage is 0% for the single required `session_id`, so the description must carry the meaning; its repeated framing of 'this session's own Order Records' effectively conveys that the call is scoped by the session identifier, though it never names `session_id` directly. For a one-parameter tool whose argument is evident from context, this is adequate compensation.

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?

Opens with a specific verb+resource+scope: 'List the orders created in this session, each with its live status.' It also explicitly contrasts with the sibling `order_get`, which handles orders from other sessions or callers, so the agent can route without opening either schema.

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

Usage Guidelines5/5

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

States clearly when to use this tool (this session's own orders) and when not to (an order from another session or caller, which goes through `order_get` with reference + email). It even supplies the customer-facing fallback wording, removing ambiguity about how to respond when only session orders can be shown.

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