Optimization
The MCP integration is in preview - tools, parameters, and behavior may change between releases.
Optimization tools generate suggestions for how a planning could look - they do not modify the schedule on their own. The dispatcher decides whether to apply the result.
Optimize field service
Tool: optimize_field_service
Optimizes field service routes using Vehicle Routing Problem (VRP) optimization. Takes a set of resources and a date range, then calculates the optimal assignment and sequencing of appointments to minimize travel time and distance. The response includes the new total travel time, total distance, the resources covered, and notes on what changed.
Requires the Field Service Optimizer optional module and the solver to be configured in Application Setup → Preview. The operation may take a while for large windows.
| Parameter | Type | Required | Description |
|---|---|---|---|
resourceDisplayNames | string | Yes | Comma-separated display names of resources to optimize (e.g. John Doe, Jane Smith) |
startDate | string | Yes | Start of the optimization window (ISO 8601, e.g. 2026-01-08) |
endDate | string | Yes | End of the optimization window (ISO 8601, e.g. 2026-01-15) |
timeZone | string | Yes | IANA timezone identifier used to interpret dates and schedule the result |
incrementalMode | boolean | No | When true, existing appointments stay pinned in place and only unplanned tasks are added. When false (default), every appointment can be rescheduled for optimal routing. |
Example prompt
"Optimize routes for John, Jane and Lara from Monday to Friday."
The optimize-and-explain prompt wraps this tool in a guided BEFORE/AFTER comparison and explicitly instructs the agent never to apply changes without dispatcher approval.