Skip to main content
Glama

Bafan

Place cash on delivery order

place_order
DestructiveIdempotent

Place a prepared cash-on-delivery or pay-at-pickup order with a payment obligation. Needs the confirmation token of the prepared order and accept_terms=true, both only after the shopper accepts the terms and confirms. Returns the order number.

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": {
      "confirmation_token": "<confirmation_token>",
      "accept_terms": "<accept_terms>"
    },
    "name": "place_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_keyNoGuest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies.
accept_termsYes
confirmation_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds the substantive behavioral fact that this creates a real payment obligation and requires recorded consent before the call. It does not explain retry semantics despite idempotentHint=true (e.g., whether re-sending the same token is safe) or what happens to the cart afterwards, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and obligation, followed by prerequisites and return value. Nothing is repeated from the annotations and no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no output schema, the description covers the action, the consent gate, the required inputs, and the return value (order number). A mention of idempotent retry behavior and error conditions would make it complete for an irreversible purchase step.

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 only 33% (cart_key is the only documented property), so the description must compensate — and it does, explaining that confirmation_token belongs to the prepared order and that accept_terms must be true only after explicit shopper consent. cart_key is left to the schema, but that schema entry is unusually detailed, so overall meaning is well covered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Place a prepared cash-on-delivery or pay-at-pickup order") and adds the crucial qualifier that the order must already be prepared, which distinguishes it from the prepare_cod_order/prepare_order siblings without needing to name them. What it does not do is explicitly name the preparation tool an agent must call first.

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 states clear preconditions: the confirmation token of the prepared order and accept_terms=true, "both only after the shopper accepts the terms and confirms." That gives an agent a concrete gate for when to invoke it. It stops short of explicit when-not guidance (e.g., what to do if no token exists yet — presumably call prepare_cod_order).

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