Logistics: Create trip
logistics_create_tripDispatch a trip (рейс) against a freight order. 'freight_order_id' is required; 'driver_id' (a driver PROFILE id from logistics_list_drivers), 'vehicle_id' and 'trailer_id' are the crew and are optional — a trip can be planned before the crew is known. 'loss_norm_pct' is the permitted weight loss for this run (take it from the cargo's default in logistics_list_references when unsure). The trip number (РЕЙ-…) is assigned by the server. The trip starts in status Planned and moves the order to Assigned. 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": {
"freight_order_id": "<freight_order_id>"
},
"name": "logistics_create_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| cargo_id | No | ||
| to_point | No | ||
| arrive_at | No | ISO date (YYYY-MM-DD) or datetime. | |
| depart_at | No | ISO date (YYYY-MM-DD) or datetime. | |
| driver_id | No | ||
| carrier_id | No | ||
| from_point | No | ||
| trailer_id | No | ||
| vehicle_id | No | ||
| distance_km | No | ||
| payment_form | No | ||
| loss_norm_pct | No | ||
| license_number | No | ||
| freight_order_id | Yes | ||
| carrier_rate_per_ton | No | ||
| carrier_payment_status | No | One of: NotPaid, Partial, Paid. | |
| actual_arrival_at_loading | No | ISO date (YYYY-MM-DD) or datetime. | |
| planned_loading_window_end | No | ISO date (YYYY-MM-DD) or datetime. | |
| planned_loading_window_start | No | ISO date (YYYY-MM-DD) or datetime. |