Get optimization result
get_optimization_resultGet the status and outcome of a route optimization by its optimization_id. While it runs, returns status and progress: tell the user the percent and the stage in one line, and wait poll_after_seconds before asking again. When complete, detail=summary returns totals and per-route metrics; detail=stops returns ordered stop_ids with arrival times (driver clock, service at earlier stops included). request shows the depot, vehicles and schedule it ran with. Completed results are kept with their plan: plan_id, and account_url, which opens it in the user's Vepathos account (sign-in required). Read-only; does not consume plan stops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size. Defaults: 25 routes for summary, 200 items for stops and unassigned. | |
| detail | No | summary: totals and per-route metrics. stops: ordered stops with arrival times. unassigned: ids of stops that could not be routed. | summary |
| offset | No | Pagination offset (routes or stops). | |
| route_id | No | Only for detail=stops: return the stop sequence of this route only. | |
| optimization_id | Yes | The optimization_id returned by optimize_routes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Pagination for routes or stops. | |
| error | No | Structured error when the tool call failed. | |
| stops | No | Ordered visits when detail=stops (no coordinates echoed). | |
| detail | No | Which slice of the result this payload carries. | |
| routes | No | Per-route metrics page when detail=summary. | |
| status | No | queued / running / completed / failed. | |
| plan_id | No | The plan this lives in, in the user's Vepathos account (list_plans). | |
| request | No | What this optimization ran with: depot, vehicles, schedule, objective, dataset. Reuse it to repeat or vary the run; confirm the depot and departure with the user first. | |
| summary | No | Present when detail=summary and completed. | |
| progress | No | Present while queued or running. | |
| expires_at | No | When results stop being available (UTC). Absent: kept with the plan. | |
| history_id | No | This run in the plan's history. | |
| account_url | No | Opens the plan in the user's Vepathos account. Requires signing in; private to the account. | |
| optimization_id | No | Same handle returned by optimize. | |
| poll_after_seconds | No | When status is queued or running, call again after about this many seconds. | |
| unassigned_stop_ids | No | Ids that could not be routed when detail=unassigned. |