Skip to main content
Glama

Place the order

order_create
Destructive

Create an order from the session cart (starts unpaid — PENDING_ARTWORK or PENDING_PAYMENT depending on the server).

For a one-line cart, pass that line's offer_id alone. For a cart with several lines, pass selections=[{line_id, offer_id}, ...], one per line, to order them together as one order with one item per line; a bare offer_id against such a cart is rejected (MultiLineCartError) rather than silently ordering just one line. Each item re-sends the sku + configuration its quote priced and binds the chosen offer; the server recomputes price, so no money is sent. Every offer_id must belong to the cart (OfferNotFoundError / LineNotFoundError otherwise — re-run order_get_quote). If RendReal refuses the chosen offer, the job fails with OfferRefusedError and no order is placed: quote again and let the customer choose. If RendReal refuses the order itself, the job fails with OrderRefusedError: the refusal is permanent, so offer a change to the setup or customer support, never a retry.

Shipping and tax are filled by Stripe at checkout. Attach artwork per line: with selections, set each entry's design_id + design_snapshot_id; with a bare offer_id, pass the top-level design_id + design_snapshot_id. Both ids are required for a design to attach, and the snapshot must be the owned design's latest. Every line needs artwork — a design, or a finished artwork file uploaded via order_get_artwork_upload_page — before the order can be paid (order_create_payment_link enforces it).

A line already ordered in this session is refused (LineAlreadyOrderedError) before any upstream order is placed, so the same still-quoted line can't be bought twice; order_view_cart marks such a line in_checkout=true. Start a new line to buy it again.

A line that is already an item of an unpaid order changes that item instead of placing a second order: after the customer changes it (catalog_configure_product with its line_id), quote it again (order_get_quote), show the new price, and call this with the chosen offer. The order and item ids stay. A new line joins the session's newest unpaid order the same way, as a new item. A changed size or page count can move the order back to PENDING_ARTWORK, and then no payment link opens it until it has artwork again. OrderEditRefusedError means RendReal refused: the order was just paid or is in production.

If catalog_configure_product reported an Unmet Constraint for any selected line, the order is refused (UnmetConstraintUnansweredError; detail.lines lists every such line with its asks in unmet) until the customer answers for each listed line. Tell the customer, per line, what they asked for and what the option accepts. If they accept every listed line as configured, call again with unmet_accepted=true, which orders all the selected lines. If they want a change on any line, call catalog_configure_product with their answer for that line instead.

Returns a job — poll until SUCCEEDED for the order_id and each line's item_id. Then get any missing artwork: design it against the order, or have the customer upload a finished file. Call order_create_payment_link only when the customer asks to pay. An item with designable: false cannot be designed here: for that item offer only the upload of a finished print file, never a design.

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_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idNo
design_idNo
selectionsNo
session_idYes
unmet_acceptedNo
design_snapshot_idNo

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 only tell us it is a destructive, non-idempotent write. The description adds substantial non-obvious behavior: the server recomputes price so no money is sent, a line already in an unpaid order mutates that item instead of creating a second order, duplicate purchase is blocked by LineAlreadyOrderedError, size/page-count changes can regress an order to PENDING_ARTWORK, and OrderRefusedError is permanent. This is behavior an agent could not infer from annotations or schema.

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?

Front-loaded with purpose and cart-shape rules, then error semantics, then return handling — a sensible order for a complex tool. It is dense and error-catalog-heavy, with some sentences that could be tightened, but nearly every line carries operational information the agent needs.

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 high-stakes, non-idempotent mutation with 6 parameters and 0% schema documentation, the description covers prerequisites (quote first, artwork per line), state transitions, failure modes and recovery, and the follow-up path (poll job, then artwork, then payment link). Output schema exists, and the job-polling note still adds actionable framing.

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 coverage is 0%, so the description must carry the full load, and it largely does: it explains offer_id versus selections, the {line_id, offer_id} entry shape, where design_id/design_snapshot_id go in each mode, and what unmet_accepted=true does. The only gap is session_id, which is never described and only implicitly referenced via 'session cart'.

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+starting state: 'Create an order from the session cart (starts unpaid — PENDING_ARTWORK or PENDING_PAYMENT)'. It also distinguishes the tool from siblings it names (order_get_quote, catalog_configure_product, order_create_payment_link, order_view_cart) rather than leaving the agent to guess.

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?

Explicit branching guidance: bare offer_id for a one-line cart vs selections for multi-line, when to re-quote after OfferNotFoundError/OfferRefusedError, when to call again with unmet_accepted=true versus calling catalog_configure_product, and when to call order_create_payment_link ('only when the customer asks to pay'). It also states prohibitions ('never a retry' after OrderRefusedError).

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