Capacitated vehicle routing
route-optimization_vrp-capacitatedAssign stops to vehicles under capacity (and optional duration) limits, returning routes with loads and distances. Price $0.05 USDC. POST /api/v1/route-optimization/vrp-capacitated. 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": {
"depot": "<depot>",
"stops": "<stops>",
"vehicles": "<vehicles>"
},
"name": "route-optimization_vrp-capacitated"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depot | Yes | depot, object. Required. | |
| speed | No | speed, number. Optional. | |
| stops | Yes | stops, array. Required. | |
| matrix | No | matrix, object. Optional. | |
| circuity | No | circuity, number, from 1 to 3. Optional. | |
| minimise | No | minimise, string, one of distance, duration. Optional. | |
| speedMps | No | speedMps, number. Optional. | |
| vehicles | Yes | vehicles, array. Required. | |
| timeLimitMs | No | timeLimitMs, integer, from 1 to 25000. Optional. | |
| matrixFromPoints | No | matrixFromPoints, string, one of euclidean, haversine. Optional. | |
| maxRouteDuration | No | maxRouteDuration, value. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | method. String. | |
| routes | No | routes. Array. | |
| optimal | No | optimal. Boolean. | |
| sources | No | sources. Array. | |
| estimate | No | estimate. Boolean. | |
| unassigned | No | unassigned. Array. | |
| limitations | No | limitations. Array. | |
| timeLimitMs | No | timeLimitMs. Number. | |
| totalDistance | No | totalDistance. Number. |