MetorialDocs

Set up Route4Me in Metorial for Claude, ChatGPT and Cursor

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

To give your team Route4Me in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Route4Me integration in a Metorial portal, and each person connects with an API key. Agents can optimize delivery and pickup routes by solving vehicle routing and traveling salesman problems. The integration has 35 tools, 13 read-only, 15 write and 7 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: Your Route4Me API key. Found under Security > API Key or Account Settings > Integrations > API Key.

Admin: share Route4Me 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 Route4Me. 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 Route4Me.

Choose who gets it

Add the access groups that should see Route4Me. 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 Route4Me integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search route4me

Employee: connect Route4Me

In the portal

Open Route4Me in the catalog

Sign in to your portal and open Route4Me. 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 route4me
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Route4Me 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 route4me
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 13 read-only tools, such as get_notes and get_orders, and lose the 15 write tools, such as add_note or create_order, and the 7 destructive tools, such as delete_route or 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 route4me
metorial tools <integration-id>
metorial call <integration-id> get_team_members -d '{}'

metorial tools lists the 35 tools, minus any you rejected. get_team_members takes no input. It retrieves the list of team members (users) associated with your account.

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

Tools

Read-only tools (13)

  • get_team_members: Retrieve the list of team members (users) associated with your account.
  • geocode_address: Convert a street address to geographic coordinates (forward geocoding) or convert lat/lng to a street address (reverse geocoding).
  • get_avoidance_zones: List all avoidance zones or retrieve a specific one.
  • get_activities: Retrieve activities from the activity feed.
  • get_tracking_history: Retrieve GPS tracking history for a specific route. Needs routeId.
  • get_contacts: Search and retrieve contacts from the address book.
  • get_vehicles: List all vehicles in your fleet, or retrieve a specific vehicle by ID.
  • get_notes: Retrieve notes for a specific stop/address on a route. Needs routeId and routeDestinationId.
  • get_optimization: Retrieve an optimization problem by ID, or list all optimizations.
  • get_orders: Retrieve a single order by ID or list orders.
  • get_territories: List all territories or retrieve a specific one.
  • get_routes: Retrieve a single route by ID or list all routes.
  • get_current_user: Retrieve the Route4Me member associated with the connected API key, including their ID, role, and contact information.

Write tools (15)

  • create_territory: Create a new territory for organizing operations geographically. Needs territoryName and territory.
  • update_contact: Update an existing contact in the address book. Needs addressId.
  • update_order: Update an existing order's properties such as address, customer info, scheduling, or custom fields. Needs orderId.
  • update_vehicle: Update an existing vehicle's properties and constraints. Needs vehicleId.
  • duplicate_route: Create a copy of an existing route. Needs routeId.
  • set_gps_position: Report a GPS position for a device. Needs routeId, memberId, lat and lng.
  • create_avoidance_zone: Create a new avoidance zone. Needs territoryName and territory.
  • create_vehicle: Add a new vehicle to your fleet with its properties and constraints. Needs vehicleAlias.
  • create_optimization: Create and solve a route optimization problem. Needs addresses.
  • create_contact: Add a new contact to the address book. Needs address1.
  • create_order: Create a new order for route planning. Needs address1.
  • update_route: Update a route's properties, resequence stops, add addresses, or remove an address. Needs routeId.
  • add_note: Add a text note to a stop/address within a route. Needs routeId, routeDestinationId and noteContent.
  • update_team_member: Update an existing team member's profile, role, or permissions. Needs memberId.
  • create_team_member: Add a new team member to your account. Needs memberEmail, memberFirstName, memberLastName, memberType and memberPassword.

Destructive tools (7)

  • delete_contacts: Delete one or more contacts from the address book. Needs addressIds.
  • delete_territory: Delete a territory. Needs territoryId.
  • delete_orders: Delete one or more orders by their IDs. Needs orderIds.
  • delete_team_member: Remove a team member from your account. Needs memberId.
  • delete_vehicle: Remove a vehicle from your fleet. Needs vehicleId.
  • delete_route: Delete a route by ID. Needs routeId.
  • delete_avoidance_zone: Delete an avoidance zone. Needs territoryId.

Triggers

Route4Me has 2 triggers, which fire on events in Route4Me:

  • activity_feed_webhook: Receives real-time activity notifications via the Route4Me Activity Feed webhook.
  • activity_feed_polling: [Polling fallback] Polls the Route4Me Activity Feed for new activities.

Next steps