assign_vehicle
Assign an own-fleet vehicle to a shipment by validating capacity and maintenance status; returns warnings and alternative suggestions for conflicts.
Instructions
Assign an own-fleet vehicle to a shipment. Checks capacity and maintenance status; idempotent.
Args:
shipment_id: Shipment ID such as "SHP-1007".
vehicle_id: Vehicle ID such as "TRK-105".
Returns:
{"status": "ok", "warnings": [...], "vehicle": {...}} - warnings flag soft issues (vehicle in another
city, driver near the 10h limit, low fuel, cold-chain mismatch). Errors suggest alternative vehicles.
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": {
"shipment_id": "<shipment_id>",
"vehicle_id": "<vehicle_id>"
},
"name": "assign_vehicle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vehicle_id | Yes | ||
| shipment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||