MetorialDocs

Set up Optimo Route in Metorial for Claude, ChatGPT and Cursor

Share Optimo Route with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 13 tools (6 read-only).

To give your team Optimo Route in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Optimo Route integration in a Metorial portal, and each person connects with an API key. Agents can create, update, search, and delete delivery and field service orders. The integration has 13 tools, 6 read-only, 6 write and 1 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Optimo Route in a portal and how each person connects
  • What Optimo Route asks for when you connect, and where to find it
  • How to keep the 6 read-only tools and reject the other 7

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: OptimoRoute API key from Administration > Settings > WS API

Admin: share Optimo Route in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Optimo Route. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Optimo Route.

Choose who gets it

Add the access groups that should see Optimo Route. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Optimo Route integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "optimo route"

Employee: connect Optimo Route

In the portal

Open Optimo Route in the catalog

Sign in to your portal and open Optimo Route. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "optimo route"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Optimo Route connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "optimo route"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as get_orders and get_routes, and lose the 6 write tools, such as create_order or optimize_routes, and the destructive tool delete_orders.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "optimo route"
metorial tools <integration-id>
metorial call <integration-id> search_orders -d '{}'

metorial tools lists the 13 tools, minus any you rejected. search_orders takes no input. It searches for orders across a date range with optional filtering by status.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • search_orders: Search for orders across a date range with optional filtering by status.
  • get_routes: Retrieve planned routes for a specific date. Needs date.
  • get_planning_status: Check the status and progress of an asynchronous route optimization run. Needs planningId.
  • get_scheduling_info: Look up the scheduling status and details of an individual order, including assigned driver, stop number, scheduled service time, and travel distance/time from the previous stop.
  • get_completion_details: Retrieve completion status and proof of delivery data for one or more orders. Needs orders.
  • get_orders: Retrieve one or more orders by their order number or system ID. Needs orders.

Write tools (6)

  • optimize_routes: Start the route optimization engine for a given date or date range. Needs date.
  • update_driver_parameters: Update driver parameters for a specific date, including enabling/disabling drivers, adjusting working hours, assigning vehicles, setting load capacities, and changing start/end locations. Needs drivers.
  • create_order: Create a single order (delivery, pickup, or task) in OptimoRoute. Needs orderNo, date and location.
  • update_driver_positions: Push driver GPS positions into OptimoRoute from an external source. Needs positions.
  • update_completion_details: Update the completion status and details of an order.
  • bulk_create_update_orders: Create or update multiple orders in a single request. Needs orders.

Destructive tools (1)

  • delete_orders: Delete one or more orders from OptimoRoute. Needs mode.

Triggers

Optimo Route has 2 triggers, which fire on events in Optimo Route:

  • inbound_webhook
  • mobile_events: Real-time events generated by drivers through the OptimoRoute mobile app, including duty changes, route starts/ends, order service starts, completions, failures, and rejections.

Next steps