Skip to main content
Glama

AgentMade Print on Demand

Cancel an order

cancel_order
DestructiveIdempotent

Cancel an order. Unpaid: closes the payment link; nothing is charged. Paid and not yet in production: cancels and refunds in full. In production or shipped: cannot be cancelled; the error gives the reason. A second call on a cancelled order is safe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNo
order_idYesorder_id returned by purchase.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
totalYes
statusYes
paymentYes
order_idYesA bearer key: whoever has it can read and cancel the order. Do not share it publicly.
quote_idYes
timelineYes
next_stepYesWhat the agent should do next, in plain language.
order_urlYesThe order page. The person sees the status there.
shipmentsYes
destinationYesWhile address_needed: the quoted destination.
status_reasonYes
address_neededYesTrue when purchase had no street address: the person enters it on the order page before paying.
delivery_estimate_business_daysYesNull when the order ended (cancelled, refunded, rejected, expired or delivered).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.