cancel_order
Cancel a specific order by providing the order ID and a reason code from available cancellation reasons.
Instructions
Cancel an order.
Call only after the user explicitly asks to cancel this exact order id.
Obtain reason_code from list_cancel_reasons and show the selected reason
before calling this tool.
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": {
"order_id": "<order_id>",
"reason_code": "<reason_code>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| order_id | Yes | ||
| reason_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||