Skip to main content
Glama

Order a paid order again

order_reorder

Order a paid order again, only when the customer asks to order it again.

Pass the order reference and checkout email exactly as the customer typed them, never guessed. Omit item_numbers to order every item again. To order only some, pass their 1-based positions in the items that order_get returned for the reference and email.

Each item keeps its Configuration and reuses the artwork the customer paid for. If today's Geometry has changed, a Design may need a new snapshot or uploaded files may need a new Mapping before payment. The items go into a new order with its own checkout link. Each line keeps the offer RendReal selected at the same production speed or the nearest available speed. Tell the customer the price and production days before the payment link. Change a line with catalog_configure_product and its line_id, add or remove lines, and call order_create_payment_link when the customer asks to pay.

Returns a job — poll until SUCCEEDED for the cart. ForeignOrderNotFoundError means the pair matched no order. ReorderItemNotFoundError names an item number that order does not have. ReorderItemNotOfferedError names an item whose product is no longer offered as it was, and ReorderItemNotQuotedError one that has no price today. ReorderRefusedError means that order is not paid, so it cannot be ordered again.

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>",
      "reference_id": "<reference_id>",
      "email": "<email>"
    },
    "name": "order_reorder"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYes
session_idYes
item_numbersNo
reference_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses real side effects: a new order with its own checkout link, reused artwork, possible re-snapshot or re-mapping needs if Geometry changed, and preservation of production speed. It also enumerates the specific failure modes (ForeignOrderNotFoundError, ReorderItemNotOfferedError, ReorderRefusedError) and states the result is a job requiring polling.

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?

The core action and the two key parameter rules are front-loaded, and every later sentence adds operational value (pricing obligation, error taxonomy, polling). It is dense and slightly fragmented across short sentences with internal capitalized terms, but justified by the tool's complexity.

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 multi-step mutation with a job-style return, the description covers triggering, parameter fidelity, downstream cart-editing flow, customer-facing price/day disclosure, and named error conditions. With an output schema present, the return value needs no further explanation and nothing essential is missing.

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?

With 0% schema coverage the description must carry all parameter meaning, and it does for three of four: reference_id and email must be passed verbatim and never guessed, and item_numbers is explained both ways (omit for all items, or 1-based positions from order_get's items array). Only session_id is left undefined, which keeps this short of a 5.

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 states a specific verb and resource ('order a paid order again') plus a scope qualifier (paid orders only), which separates it from order_create and order_get. An agent can identify the operation without opening the 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?

It gives an explicit trigger ('only when the customer asks to order it again') and routes to concrete alternatives and follow-ups: order_get to obtain items, catalog_configure_product with line_id to change a line, and order_create_payment_link when the customer asks to pay. When-not-use is implied by the paid-order requirement and the named errors.

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