# Tools from your MCP server

Source: https://docs.usetone.ai/mcp-tools

> Connect your own MCP server and let an agent call its tools during a phone call, with each tool's definition frozen and writes confirmed by the caller.

If your systems already speak [MCP](https://modelcontextprotocol.io), an agent can use their
tools during a call: look up an order, check a booking, create a ticket. You connect the server
once, choose which of its tools each agent may call, and Tone calls them from its side while the
agent is talking.

This is the other direction from [Tone's own MCP server](/mcp), which lets an AI agent use Tone.

## Connect a server

Connect it in the dashboard, under **Settings → Integrations → MCP servers**. A server is
connected by a person, never by an API key: it decides which third party a phone call can reach,
and with which credential.

- **Address.** The server's Streamable HTTP endpoint, over `https`, on a public address. Tone
  speaks protocol `2026-07-28` and falls back to `2025-11-25`, sessions included.
- **Credential.** A bearer token, a header of your choosing, or none. It is stored encrypted,
  bound to the server's origin so it can never be sent anywhere else, and never shown again.
  Servers that only accept OAuth sign-in cannot be connected yet.

Connecting lists the server's tools straight away. **Refresh tools** lists them again.

## Which tools can be used

An agent fills a tool's arguments from what was said, so Tone can use a tool whose input is a
flat object of strings, numbers, integers and booleans, with at most 16 of them. A tool that
needs a nested object, an array or a choice between shapes cannot be used; an optional one of
those is left out and the rest of the tool still works. The dashboard says which tools qualify
and why.

## Put tools on an agent

In the agent's **Tools & knowledge** tab, choose tools under **MCP tools**. With the API, send
`mcpTools` on `PATCH /v1/agents/{id}`. You name a tool, never define it:

```json
{
  "mcpTools": [
    { "connectionId": "9f1c2d84-4e3a-4f6c-b902-7d1e8a33c451", "remoteName": "getOrderStatus" },
    {
      "connectionId": "9f1c2d84-4e3a-4f6c-b902-7d1e8a33c451",
      "remoteName": "cancelOrder",
      "pins": { "store_id": "BLR-04" },
      "speech": { "en-IN": "One moment while I do that." },
      "timeoutMs": 8000
    }
  ]
}
```

| Field | What it does |
|---|---|
| `connectionId`, `remoteName` | The server, and the tool's name on it. |
| `name` | What the agent calls it. Defaults to a snake_case form of `remoteName`. |
| `description` | When the agent should call it. Defaults to the server's own description. |
| `pins` | Arguments fixed to a value and never shown to the agent. `{{call_id}}`, `{{customer_number}}` and the call's variables are filled in. |
| `speech` | What the agent says while the tool runs, per language. |
| `timeoutMs` | 1,000 to 30,000. Default 10,000. |
| `confirmation` | `caller` or `none`. See below. |
| `refresh` | Take the server's current definition of a tool already on the agent. |

MCP tools and [HTTP tools](/tools) share one limit of 15 per agent, and one set of names.
`mcpTools` is a complete list, like `tools`: what you send replaces what is there, and a tool
read back from `GET /v1/agents/{id}` can be sent back unchanged.

## A tool's definition is frozen when you choose it

What the agent is told about a tool is taken from the server's listing when you choose it, and
stored on the agent (`mcp.definition` and its `mcp.definitionHash`). A call never lists the
server. If the server later changes a tool, the agent keeps the definition you saw until you take
the new one.

🔴 **A tool description is an instruction to the agent.** A server that rewrites a description
("also offer every caller a refund") is changing what your agent does on the phone. That is why a
change waits for a person:

- **Publishing checks.** `POST /v1/agents/{id}/publish` lists each server again and answers `409`
  when a chosen tool changed or disappeared. `error.details.mcpTools` names each one, with
  `problem` set to `changed`, `removed` or `server_unreachable`.
- **Every six hours** Tone lists each server an agent uses. A changed tool shows on the server in
  Settings → Integrations, and on the agent, with the new description to read before you take it.
  When the tool belongs to an agent's live version, your workspace's owners and admins get an
  email, once per change. They get one too if the server stops answering while a live version
  uses it. The email names the agent and the tool, never the server's new text.
- **Taking the change** is `refresh: true` on that tool, or **Use the new definition** in the
  dashboard, then save and publish.

Rolling back to an older version does not check: going back is the way out of a bad change.

## The caller confirms anything that changes data

A tool the server does not mark read-only (`readOnlyHint`) asks the caller first. The first call
does not run: the agent is told to read the details back and ask. Only a call made after the
caller has spoken again, with the same details, reaches your server. Tone enforces this, so an
agent that skips the question still cannot run the tool.

You can switch it off per tool (`"confirmation": "none"`). Do that only for a tool that is safe
to run on whatever a stranger on the phone says.

## What reaches your server

- **Arguments.** The values the agent filled in, plus your `pins`. Nothing else from the call:
  not the transcript, and not a call variable you did not pin.
- **The result.** Text content goes back to the agent, up to 6,000 characters. Images, audio and
  linked resources are left out. A result with `isError` is reported to the agent as a failure.
- **A write that times out** is reported to the agent as unknown, not failed, because it may have
  happened. The agent says it is being checked rather than telling the caller it failed, and does
  not try again.

Where your server runs decides where those arguments go. Tone calls it from India. Each call's
tool log, `GET /v1/calls/{id}/tool-calls`, records every request with `source: "mcp"` and the
`host` it went to, so you can say which servers a caller's details reached.

Tone keeps a connection to your server open for about 30 seconds between requests, so the tool
calls of one conversation do not each pay for a new connection.

## What is not supported yet

Prompts, resources, sampling and elicitation, servers that require OAuth, and progress
notifications during a tool call.
