> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Route4Me in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/route4me
Last updated: 2026-11-24

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 will 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**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Route4Me for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `apiKey` |

### 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

1. **Open Shared Resources**

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

2. **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.

3. **Limit the tools**

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

4. **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:

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

## Employee: connect Route4Me

### In the portal

1. **Open Route4Me in the catalog**

   Sign in to your portal and open Route4Me. The status reads **Available**.

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
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.

```bash
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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
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

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Route4Me there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Route4Me on metorial.com](https://metorial.com/integrations/route4me): the integration overview