Logistics: Set trip status
logistics_set_trip_statusMove a trip through its lifecycle: Planned → Loading → EnRoute → Unloading → Done, or aside to Problem or Cancelled. The server enforces the rules, so gather what they need BEFORE calling: cancelling requires 'cancellation_reason'; closing a trip as Done requires an unloading weight AND a TTN number already recorded (see logistics_record_trip_weights) and, when the weight loss exceeds the workspace norm, an 'over_norm_comment' explaining it. Pass 'status_changed_at_utc' only when back-dating a transition that really happened earlier. A trip that has already left is never deleted — it is cancelled here. Requires confirmation. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"trip_id": "<trip_id>",
"status": "<status>"
},
"name": "logistics_set_trip_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | One of: Planned, Loading, EnRoute, Unloading, Done, Problem, Cancelled. | |
| trip_id | Yes | ||
| over_norm_comment | No | ||
| cancellation_reason | No | ||
| status_changed_at_utc | No | ISO date (YYYY-MM-DD) or datetime. |