Set up Detrack in Metorial for Claude, ChatGPT and Cursor
Share Detrack with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 13 tools (8 read-only).
To give your team Detrack in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Detrack integration in a Metorial portal, and each person connects with an API key. Agents can create, manage, and track delivery and collection jobs for logistics operations. The integration has 13 tools, 8 read-only, 3 write and 2 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Detrack in a portal and how each person connects
- What Detrack asks for when you connect, and where to find it
- How to keep the 8 read-only tools and reject the other 5
Before you start
- A portal with at least one access group
- An API key from Detrack for each person, or one for a shared connection
- For the CLI steps: the Metorial 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 Detrack API key. Found under Integrations > API Key in your Detrack dashboard.
Admin: share Detrack 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 Detrack. 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 Detrack.
Choose who gets it
Add the access groups that should see Detrack. 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 Detrack integration. Once it exists, check which groups have it:
Employee: connect Detrack
In the portal
Open Detrack in the catalog
Sign in to your portal and open Detrack. 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
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Detrack 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.
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 8 read-only tools, such as get_job and list_jobs, and lose the 3 write tools, such as create_job or update_job, and the 2 destructive tools, such as delete_job or manage_vehicle.
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 tools lists the 13 tools, minus any you rejected. list_vehicles takes no input.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (8)
get_job: Retrieves the full details of a specific delivery or collection job including status, milestones, items, proof of delivery info, and all associated metadata. NeedsdoNumber.download_pod: Prepares a downloadable Proof of Delivery (POD) PDF or shipping label PDF for a job. NeedsdoNumberanddate.search_jobs: Searches for jobs across dates using various criteria such as date range, driver, status, tracking number, order number, and customer.list_vehicles: Retrieves a page of vehicles (drivers) registered in Detrack.list_jobs: Lists delivery and collection jobs with optional filters.list_depots: Lists depots with their IDs, names, addresses and coordinates for delivery planning.get_vehicle: Retrieves a driver or vehicle by its exact name, including its identifiers, location, status and operational details.list_routes: Retrieves routes for a date, optionally by exact route name.
Write tools (3)
update_job: Updates an existing delivery or collection job in Detrack. NeedsdoNumberanddate.reattempt_job: Reattempts a previously failed job in Detrack. NeedsdoNumberanddate.create_job: Creates a new delivery or collection job in Detrack. Needsdate,doNumberandaddress.
Destructive tools (2)
manage_vehicle: Creates, updates, or deletes a vehicle (driver) in Detrack. Needsactionandname.delete_job: Permanently deletes a delivery or collection job from Detrack. NeedsdoNumberanddate.
Triggers
Detrack has 2 triggers, which fire on events in Detrack:
job_updates_polling: [Polling fallback] Polls Detrack for job updates on a regular interval.job_status_update: Triggers when a job status changes in Detrack.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Detrack there
- Tool permissions: tool filters and what employees see
- Detrack on metorial.com: the integration overview