Multi-day visit planning
route-optimization_multi-day-planAssign recurring visits across a horizon with frequency and spacing rules, then route each day. Price $0.05 USDC. POST /api/v1/route-optimization/multi-day-plan. 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": {
"horizonDays": "<horizonDays>",
"stops": "<stops>",
"depot": "<depot>"
},
"name": "route-optimization_multi-day-plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depot | Yes | depot, object. Required. | |
| stops | Yes | stops, array. Required. | |
| matrix | No | matrix, object. Optional. | |
| horizonDays | Yes | horizonDays, array. Required. | |
| timeLimitMs | No | timeLimitMs, integer, from 1 to 25000. Optional. | |
| capacityPerDay | No | capacityPerDay, value. Optional. | |
| vehiclesPerDay | No | vehiclesPerDay, integer, from 1 to 100. Optional. | |
| matrixFromPoints | No | matrixFromPoints, string, one of euclidean, haversine. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | days. Array. | |
| sources | No | sources. Array. | |
| unassigned | No | unassigned. Array. | |
| limitations | No | limitations. Array. | |
| visitPatterns | No | visitPatterns. Array. |