Skip to main content
Glama

Prepare an order for the person to approve

prepare_checkout
Destructive

Prepare an order using the connected person's saved address. This buys nothing and moves no money. Give the person the reviewUrl to approve and pay on Escrova. A typed address, gift or marketplace listing is refused.

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": {
      "items": "<items>"
    },
    "name": "prepare_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
giftNoRefused: a gift is made by the person at checkout.
itemsYesThe store items to buy.
addressIdNoAn id from this person's saved addresses. Omit for their default.
listingIdNoRefused: only store items can be prepared here, not a marketplace listing.
shippingAddressNoRefused: an order can only go to an address the person saved. Send addressId instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / addressId / description
      Previous value: -"An id from list_addresses, read under the same grant. Omit for the person's default."New value: +"An id from this person's saved addresses. Omit for their default."
    • removedInput schema / properties / delegationGrantId
      Removed value: -{
      -  "description": "The grant of the person this order is for, from get_delegation. Required: without one there is nobody to ask.",
      -  "maxLength": 512,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / nonce
      Removed value: -{
      -  "description": "The nonce returned by auth_challenge.",
      -  "type": "string"
      -}
    • removedInput schema / properties / signature
      Removed value: -{
      -  "description": "base58 ed25519 signature over the exact message auth_challenge returned.",
      -  "type": "string"
      -}
    • removedInput schema / properties / walletAddress
      Removed value: -{
      -  "description": "The agent wallet that signed the challenge.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "walletAddress",
      -  "nonce",
      -  "signature",
      -  "delegationGrantId",
      -  "items"
      -]New value: +[
      +  "items"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses the human-in-the-loop pattern and the critical fact that nothing is purchased or charged at this step, which is exactly the kind of context annotations cannot convey. It adds no word on repeat-call behavior despite idempotentHint=false, and does not explain why destructiveHint=true applies when no money moves, leaving a mild ambiguity the agent must resolve itself.

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?

Four short sentences, zero filler. The scope disclaimer is front-loaded before the refusal list, and the actionable next step (reviewUrl) is placed where the agent will read it last before calling.

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?

There is no output schema, and the description usefully names reviewUrl as the key return value plus the follow-up action, which is the main thing an agent needs. It omits the rest of the response shape (e.g., whether an order or intent identifier comes back) and does not mention that the 4 documented-but-optional fields are all refusals, which would make the effective parameter set clearer.

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 100% schema coverage the baseline is 3, but the description supplies the reasoning behind three parameters — that a typed address and a listing are refused because only a saved address and store items are valid here. It stops short of clarifying the items array shape or which fields each item object accepts.

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 uses a specific verb and resource ("prepare an order") and immediately bounds the scope with "This buys nothing and moves no money," which separates it from a purchase tool. It does not explicitly differentiate itself from read-oriented siblings such as get_checkout_intent or get_order, so an agent must infer that distinction.

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 states the positive precondition (use the connected person's saved address), gives the post-call routing instruction ("Give the person the reviewUrl to approve and pay on Escrova"), and enumerates what is refused (typed address, gift, marketplace listing). The when-not cases are explicit rather than left to inference.

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