cancel_order
Cancel an order with optional refund and restock, and notify the customer to manage order changes and inventory updates.
Instructions
Cancel an order with optional refund and restock
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": {
"id": "<id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order ID | |
| reason | No | Cancellation reason | |
| refund | No | Issue refund (default: false) | |
| restock | No | Restock items (default: true) | |
| notifyCustomer | No | Send cancellation email (default: true) |