Assign routes to drivers
route-optimization_driver-shift-assignAssign pre-built routes to drivers by shift, skills and vehicle type with min-cost Hungarian matching. Price $0.03 USDC. POST /api/v1/route-optimization/driver-shift-assign. An unpaid call returns the x402 payment terms and does not run.
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": {
"routes": "<routes>",
"drivers": "<drivers>"
},
"name": "route-optimization_driver-shift-assign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | routes, array. Required. | |
| drivers | Yes | drivers, array. Required. | |
| skillMode | No | skillMode, string, one of strict, soft. Optional. | |
| skillPenalty | No | skillPenalty, number, from 0 to any. Optional. | |
| allowMultiple | No | allowMultiple, boolean. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | sources. Array. | |
| totalCost | No | totalCost. Number. | |
| unassigned | No | unassigned. Array. | |
| assignments | No | assignments. Array. | |
| limitations | No | limitations. Array. |