Skip to main content
Glama

shop

Place order

place_order

Place the order and start its payment. First confirm the order, its total and the terms of sale (/pg/terms.html on the store) with the shopper; send accept_terms true only after their explicit yes. With a confirmed email (path A) the order is placed at once and the answer gives the payment step: payment.url to open, bank-transfer instructions or a voucher, plus pay_link (valid 30 days). Before confirmation (path B) the shopper pays first: open payment.url; the order is placed and their account made when the payment succeeds, and the cart is frozen until then. If another order just took stock, the answer is stock_changed with the changes and ready values: tell the shopper and place again with them only after they agree. Never call the order paid before check_payment says paid. Needs the order reference from start_order (Authorization: Bearer mo1_… or the ref argument). Send a fresh op_id (16 to 40 letters, digits, - or _) with each change: a repeat with the same op_id within 10 minutes answers the first result and never changes the order twice.

Input Schema

NameRequiredDescriptionDefault
addNoReplacements the shopper accepted after stock_changed
refNoOrder reference (mo1_…) from start_order, only when the client cannot send it as Authorization: Bearer
op_idNoA fresh id per change (16 to 40 letters, digits, - or _); repeating it within 10 minutes answers the first result without changing the order again
accept_termsYestrue only after the shopper explicitly accepted the terms of sale
expect_totalNoThe grand total in EUR the shopper agreed to (ready.expect_total)
payment_methodNoA key from view_checkout, when not set yet or to change it
accept_stock_changesNoPlace again after stock_changed, from ready

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?

Beyond the annotations, the description discloses the payment-step output shape (payment.url, bank-transfer instructions, voucher, pay_link validity), the cart-freeze behavior in path B, account creation on payment success, and the stock_changed recovery flow. It also explains auth and the op_id dedupe window, which usefully qualifies the idempotentHint=false annotation without directly contradicting it.

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 description front-loads the core action and organizes the workflow into path A, path B, stock_changed recovery, auth, and op_id idempotency blocks with little filler. It is dense and repeats some parameter rules already present in the schema, which keeps it from being maximally concise.

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 complex multi-step order/payment mutation with no output schema, the description supplies the important return signals (payment.url, pay_link, stock_changed/ready) and the sequencing constraints needed to call it safely. Auth and retry semantics are also covered, so nothing critical 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?

Schema coverage is already 100%, so the baseline is 3. The description still adds workflow meaning to accept_terms, op_id, add, and the agreed total, linking them to explicit consent, dedupe, stock replacement, and confirmation. It does not add much independent meaning for payment_method or accept_stock_changes beyond the schema, so 4 rather than 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 opens with a specific verb and resource: 'Place the order and start its payment.' It also distinguishes the two placement paths (confirmed email vs. pre-confirmation) and ties the tool to the order reference from start_order, so an agent can separate it from cart and payment-check siblings.

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 explicit when-to-use guidance: confirm total and terms first, send accept_terms only after explicit consent, and use the reference from start_order. It also names alternatives/related tools such as start_order and check_payment, and states the stock_changed retry condition after shopper agreement.

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