# Safety and limits

## Read-only by design

The server exposes 38 tools and all of them read. Nothing an assistant does through CarrierCloud MCP can book, change, cancel, accept, reject, register or delete anything. Every tool carries the MCP `readOnlyHint` annotation so clients can show it as safe without a confirmation prompt.

Operations excluded on purpose:

- Order booking, update and cancellation; quote creation.
- Stop arrive, depart and update; load and segment updates; GPS updates.
- Notes and attachments; external document sync.
- Tractor, trailer and location create, update and delete; invoice create and update.
- Webhook registration and removal.
- `Accept an Offer` and `Reject an Offer`: HTTP `GET` on the REST API, but they change state.

## Same key, same rules

An assistant authenticates with an ordinary CarrierCloud API key. Each tool call is executed as the matching REST request inside the gateway, so it passes through exactly the same checks:

1. The API key is valid.
2. The partner code names a company that lists your company as an approved, API-enabled partner.
3. Operation-level limits (the sandbox gate) apply.

The server cannot widen access. If a person with the key could not read a record through the REST API, an assistant with the key cannot read it through MCP.

## What an assistant sees

Tools return the same JSON the REST operation returns, including the plain-text `404 No ... found.` on empty lists and the `401` texts on partnership problems. Assistants handle these as ordinary tool results. Nothing is cached on the server between calls; every call reads live data.

## Limits

- Lists are capped at 100 records per call (`page` argument) and positions at 100 per call, as on the REST API.
- Four tools are currently gated and answer `401 Sandbox Limit`: `get_active_offers`, `get_drivers_hours_of_service`, `get_quote_details`, `get_order_documents`. See [Environments](/docs/environments#gated-operations).
- There is no published per-key rate limit. Assistants that loop over many partners or pages should pause between calls.

## Keys and assistants

- Prefer a dedicated key per assistant deployment so it can be revoked without affecting other systems.
- Store the key in the client's secret store (Cursor and VS Code both support prompts and environment variables); never paste it into a shared chat.
- Treat anything an assistant retrieves as subject to the same confidentiality as the REST data it came from.

## Roadmap

Planned, not available today:

- Sign-in with OAuth instead of a pasted key, so assistants can connect through the client's own connector flow.
- A small set of governed write tools (for example creating a quote or adding a note) behind an explicit write scope.
- Prompts and resources for common dispatcher questions.

Each will be announced on the [changelog](/docs/changelog).
