Privi Car: best route for a list of stops
car_routeOrder the stops for the shortest trip. The exact best order is proven classically (Held-Karp); with five stops or fewer the same problem also runs as a QUBO on the CVaR-QAOA quantum simulator, and the signed receipt shows both. Returns the order, distance, and how much it saves over the order given. Uses straight-line distance unless you pass distances_km. Stops are not stored.
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": {
"stops": "<stops>"
},
"name": "car_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stops | Yes | 2-12 stops as {name, lat, lon}; the first is the start | |
| round_trip | No | Return to the start at the end (default true) | |
| distances_km | No | Optional n x n road distances or minutes; overrides straight-line distance |