samsara_optimize_route
Reorder stops on a route to minimize distance, time, or fuel consumption while preserving stop data.
Instructions
Optimize route stop order to minimize distance/time. This is a value-add feature that reorders stops for efficiency while preserving all stop data and IDs.
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": {
"routeId": "<routeId>"
},
"name": "samsara_optimize_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routeId | Yes | Route ID to optimize | |
| optimizationGoal | No | What to optimize for | distance |