cancel_order
Cancel a customer's order after verifying ownership and cancellable status. Use preview mode first to confirm the order details, then confirm to finalize.
Instructions
Cancel an order belonging to a specific customer.
This is a state-changing operation, gated the same way as the in-process agent: the order must exist, must belong to customer_id, and must be in a cancellable state (Pending or Processing). Call with confirmed=False first to preview the result without cancelling anything; call again with confirmed=True only after the customer has explicitly confirmed that specific order.
The calling client remains responsible for authenticating the customer before invoking this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| confirmed | Yes | ||
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||