update_shipment_status
Change a shipment's status and log a history event, such as delayed, delivered, or exception, so logistics tracking stays accurate.
Instructions
Change a shipment's status and log a history event (e.g. mark delayed, delivered, exception).
Args:
shipment_id: Shipment ID such as "SHP-1002".
status: New status: created, picked_up, in_transit, delayed, out_for_delivery, delivered or exception.
city: Optional city where the update happened (defaults to the current/destination city).
note: Short human-readable reason, e.g. "Rain on NH-48, 6h delay". Stored as the shipment note.
Returns:
{"status": "ok", "previous_status": ..., "shipment": {...}, "event": {...}} or an error with valid values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| note | No | ||
| status | Yes | ||
| shipment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||