# MCP tool annotations explained: what readOnlyHint and destructiveHint mean for teams approving agent tool calls

> What each MCP tool annotation means according to the spec, what Claude Code, Codex and Cursor do with them according to their docs, and how a team using coding agents can decide what to auto-approve and what a person must see.

What each MCP tool annotation means according to the spec, what Claude Code, Codex and Cursor do with them according to their docs, and how a team using coding agents can decide what to auto-approve and what a person must see.

November 30, 2026 · 5 min read · The Sandscale team

When a team runs coding agents with MCP servers, someone has to decide which tool calls go through on their own and which ones a person sees first. MCP has a field meant to help with that decision: tool annotations. They are useful, they are often misread, and the spec is clear that they are hints, not guarantees.

This post covers what the annotations say according to the [MCP specification](https://modelcontextprotocol.io/specification/2025-11-25/server/tools), what three coding tools do with them according to their own docs, and a way to turn that into an approval policy.

## The annotations, from the spec

A server can attach an `annotations` object to each tool it lists in `tools/list`. The spec’s [schema](https://modelcontextprotocol.io/specification/2025-11-25/schema) defines five properties:

| Property | Meaning in the spec | Default |
| --- | --- | --- |
| `title` | A human-readable title for the tool. | none |
| `readOnlyHint` | If true, the tool does not modify its environment. | false |
| `destructiveHint` | If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates. Meaningful only when `readOnlyHint` is false. | true |
| `idempotentHint` | If true, calling the tool repeatedly with the same arguments has no additional effect on its environment. Meaningful only when `readOnlyHint` is false. | false |
| `openWorldHint` | If true, the tool may interact with an “open world” of external entities. If false, its domain of interaction is closed. The spec’s example: a web search tool is open, a memory tool is not. | true |

Two things in that table matter more than the rest.

**The defaults are cautious.** A tool with no annotations is treated as not read-only, possibly destructive, not idempotent and open-world. A server that says nothing gets the most careful reading, which is the right way round.

**They are hints.** The schema says all of these properties “are not guaranteed to provide a faithful description of tool behavior”, and that “clients should never make tool use decisions based on ToolAnnotations received from untrusted servers”. The tools page puts it as a requirement: clients “MUST consider tool annotations to be untrusted unless they come from trusted servers.” A malicious server can label a tool that deletes files as `readOnlyHint: true`. The annotation describes what the server claims, not what the tool does.

The same page says there “SHOULD always be a human in the loop with the ability to deny tool invocations”. It also says clients should show tool inputs to the user before calling the server and log tool usage for audit.

## What coding tools do with them

Clients differ, so check your own tool’s docs. As of November 2026:

**Codex.** The [Codex MCP docs](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) give each server a `default_tools_approval_mode`, with the values `auto`, `prompt`, `writes` and `approve`. “The `writes` mode prompts for tools that aren’t marked read-only.” You can override it per tool with `tools.<tool>.approval_mode`, and limit what the model sees at all with `enabled_tools` and `disabled_tools`.

**Claude Code.** The [Claude Code MCP docs](https://code.claude.com/docs/en/mcp) use `readOnlyHint` and `idempotentHint` in two places. A tool marked read-only can run in parallel with other read-only calls. And a call that was pending when a connection to an HTTP server closed can be repeated once, on a new connection, if the tool is marked idempotent or read-only. Approval itself goes through [permission rules](https://code.claude.com/docs/en/permissions): `mcp__<server>__<tool>` names one tool and `mcp__<server>__*` names every tool on a server, in `allow`, `ask` or `deny` lists.

**Cursor.** Cursor’s [MCP docs](https://cursor.com/docs/mcp) describe a team MCP allowlist under Team Settings, MCP Configuration. Command entries approve local servers, URL entries approve remote servers, and “Tool allowlists restrict which tools from an approved server can run automatically.”

The common thread: annotations can shape the default, but the decision that matters is written down by your team, per server and per tool.

## Turning it into a team policy

A simple way to write that decision:

1. **Only trusted servers get any automatic approval.** For a server you have not vetted, ignore its annotations and ask for everything. That follows the spec’s own rule.
2. **Reads can go through.** Listing and showing things, on a server you trust.
3. **Changes are asked.** Anything that starts, runs or writes.
4. **Irreversible actions are always asked**, whatever the annotations say.
5. **Write it in config, not in people’s heads.** Commit it with the project where your tool allows that.

Here is what that looks like for [Sandscale’s MCP servers](https://sandscale.dev/sandboxes/mcp), which give each agent its own machine. The [remote tool reference](https://sandscale.dev/docs/guides/connect-claude-chatgpt) has a “Changes things” column and marks `sandbox_stop` as “Yes, cannot be undone”, because it deletes the sandbox’s disk. The local server in the Sandscale CLI (version 1.4.1) annotates its tools: in its `tools/list`, `sandbox_list`, `sandbox_get`, `workspace_list` and `workspace_get` carry `readOnlyHint: true`; `sandbox_create`, `sandbox_exec`, `workspace_start` and `workspace_stop` carry `readOnlyHint: false`; and `sandbox_terminate` carries `destructiveHint: true`.

**Claude Code**, connected through the local server (`claude mcp add sandscale -- sandscale mcp`), in the project’s `.claude/settings.json`:

```json
{
  "permissions": {
    "allow": [
      "mcp__sandscale__sandbox_list",
      "mcp__sandscale__sandbox_get",
      "mcp__sandscale__workspace_list",
      "mcp__sandscale__workspace_get"
    ],
    "ask": [
      "mcp__sandscale__sandbox_create",
      "mcp__sandscale__sandbox_file_write",
      "mcp__sandscale__sandbox_exec",
      "mcp__sandscale__sandbox_terminate",
      "mcp__sandscale__workspace_start",
      "mcp__sandscale__workspace_stop"
    ]
  }
}
```

**Codex**, connected to the remote server, in `~/.codex/config.toml`:

```toml
[mcp_servers.sandscale]
url = "https://mcp.sandscale.dev/mcp"
default_tools_approval_mode = "writes"

[mcp_servers.sandscale.tools.sandbox_stop]
approval_mode = "prompt"
```

The `writes` default relies on how the server marks its tools. The explicit `prompt` on `sandbox_stop` does not, so the one irreversible tool is always asked about. If you want reads to go through, check what Codex shows for each tool after you connect.

## Annotations are not the boundary

Even a perfect set of annotations only tells a client what to ask about. It does not limit what an approved call can do. That is why the machine matters too: a `sandbox_exec` that a developer approves in a hurry runs in a Firecracker microVM that belongs to that agent, not on the developer’s laptop.

On the Sandscale side, two more controls do not depend on any client:

- **Approval gates** in your organization’s [policies](https://sandscale.dev/docs/concepts/approvals) make a person sign off before an action happens, and nobody approves their own request. Approvals come with every plan.
- **The audit log** records every remote MCP call with the tool, region, outcome and app, never the arguments, alongside everything else your organization does. See the [audit log docs](https://sandscale.dev/docs/concepts/audit).

To connect your agent and try these settings, start with the [Quickstart](https://sandscale.dev/docs/quickstart). Our post on [running untrusted MCP servers in a microVM](https://sandscale.dev/blog/running-untrusted-mcp-servers-in-a-microvm) covers the servers you have not vetted yet.

**On this page**

1. The annotations, from the spec
2. What coding tools do with them
3. Turning it into a team policy
4. Annotations are not the boundary

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [November 30, 2026 · **MCP servers your team's agents install: run them on the agent's own machine, not the laptop with everyone's keys** · A local MCP server runs with the same rights as the client that starts it. What the MCP spec's security guidance says about that, and how to put the coding agent and its MCP servers on a microVM of their own, with no code to write.](https://sandscale.dev/blog/running-untrusted-mcp-servers-in-a-microvm)
- [November 30, 2026 · **Overnight coding agent runs: one workspace per agent, started by you, stopped and woken on a schedule** · How a team can leave several Claude Code or Codex runs going overnight, each on its own cloud machine, with a time to live to cap the run and an autostart schedule to bring the machine back for review. What these settings do, what they do not do, and what to check first.](https://sandscale.dev/blog/scheduling-workspaces-for-overnight-agent-runs)

---
Source: https://sandscale.dev/blog/mcp-tool-annotations-explained
