cancel_parcel
Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly. For carriers with automated cancellation APIs (Pathao, RedX, Paperfly), executes live upstream cancellation immediately. For Steadfast, validates parcel eligibility, marks internal status as CANCEL_REQUESTED, and provides direct portal action links.
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": {
"courier": "<courier>",
"consignment_id": "<consignment_id>"
},
"name": "cancel_parcel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional cancellation reason (e.g. 'Customer cancelled', 'Address incorrect') | |
| courier | Yes | Courier provider name | |
| consignment_id | Yes | Consignment ID or tracking code to cancel |