Skip to main content
Glama

Send Christmas Postcard

Prepare a postcard order

prepare_postcard

Use once the design or photo, message, recipient addresses and mode are confirmed with the user. Returns the private order ref, front and per-recipient back previews, the locked quote, and a Send Christmas Postcard checkoutUrl that redirects to Stripe. Charges and mails nothing until the user pays.

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": {
      "mode": "<mode>",
      "card": "<card>",
      "recipients": "<recipients>"
    },
    "name": "prepare_postcard"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardYes
modeYes"test" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). "live" = real card, printed and mailed. Always explicit.
localeNo
currencyNoBuyer currency. Fixed at prepare time; checkout charges exactly this.EUR
buyerEmailNoReceipt + status emails. Optional.
recipientsYes
idempotencyKeyNoReuse this key only to retry the same request.

Output Schema

NameRequiredDescriptionDefault
orderYes
quoteYes
paymentYes
previewsYes
warningsYes
payloadHashYessha256 of the canonical order payload; binds price and content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / quote / properties / nextPrintRun / description
      Previous value: -"ISO datetime of the next print run (06:00 Europe/Amsterdam, working days)."New value: +"ISO datetime of the print run that covers every card in the quote. Each destination's supplier has its own run: print.one 06:00 Europe/Amsterdam, Lob 10:00 America/Los_Angeles, Stannp the next UK working day. Weekends and supplier holidays are skipped."
  2. Changed3 schema fields changed
    • changedInput schema / properties / card / properties / format / description
      Previous value: -"\"a6\" = classic 148×105 mm postcard (default). \"square\" = 148×148 mm."New value: +"Card size. Only \"a6\" = classic 148×105 mm postcard (the default; omit it). Use orientation for landscape or portrait."
    • changedInput schema / properties / card / properties / format / enum
      Previous value: -[
      -  "a6",
      -  "square"
      -]New value: +[
      +  "a6"
      +]
    • changedInput schema / properties / card / properties / orientation / description
      Previous value: -"A6 only. Default landscape."New value: +"Front orientation. Default landscape."
  3. Changed1 schema field changed
    • addedOutput schema / properties / order / properties / recipients / items / properties / refundStatus
      Added value: +{
      +  "description": "Refund outcome for a cancelled or rejected card, when known.",
      +  "enum": [
      +    "pending",
      +    "refunded"
      +  ],
      +  "type": "string"
      +}
  4. Changed3 schema fields changed
    • changedOutput schema / properties / quote / properties / lines / items / properties / estimatedDeliveryDays / description
      Previous value: -"Business days after the print run."New value: +"[min, max] business days after the print run."
    • changedOutput schema / properties / quote / properties / lines / items / properties / estimatedDeliveryDays / items
      Previous value: -falseNew value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / quote / properties / lines / items / properties / estimatedDeliveryDays / prefixItems
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false and openWorld=false. The description adds genuinely useful behavior beyond that: the returned order ref is private, the quote is locked at prepare time, the checkoutUrl hands off to Stripe, and critically that nothing is charged or mailed until the user pays. It does not address retry behavior despite the idempotencyKey parameter or clarify why idempotentHint is false.

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 tight sentences, front-loaded with the precondition, then the return payload, then the no-charge safety guarantee. Every sentence adds distinct information with no repetition of schema or annotations.

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 complex tool with nested objects, an output schema, and a real-money consequence, the description covers the essentials: prerequisites, outputs, and the fact that no payment/print occurs. Error paths (message_too_long), rate limits, and idempotency semantics are left to the schema or unstated, which keeps it short of fully complete.

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 57% schema description coverage on 7 top-level parameters, the description carries part of the load and correctly highlights the four required inputs (front design/photo, message, recipient addresses, mode). It adds the semantic that the quote/currency is fixed at prepare time, which is not obvious from the schema. It says nothing about locale, buyerEmail, or idempotencyKey handling.

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 states a specific action (prepare an order) with concrete preconditions ('once the design or photo, message, recipient addresses and mode are confirmed') and enumerates the exact outputs: order ref, front and per-recipient previews, locked quote, Stripe checkoutUrl. It does not explicitly name the related siblings (quote_postcard, get_checkout_link), so the boundary between preparing and quoting/checkout is inferable but not stated.

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?

'Use once ... confirmed with the user' gives a clear precondition for calling, which is more than most definitions offer. However, it never says when NOT to use it or points to the alternative flow (e.g., call quote_postcard for a price preview without creating an order), leaving the ordering of the sibling tools 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.