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, 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 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 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 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: 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 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:
- 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.
- Reads can go through. Listing and showing things, on a server you trust.
- Changes are asked. Anything that starts, runs or writes.
- Irreversible actions are always asked, whatever the annotations say.
- 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, which give each agent its own machine. The remote tool reference 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:
{
"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:
[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 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.
To connect your agent and try these settings, start with the Quickstart. Our post on running untrusted MCP servers in a microVM covers the servers you have not vetted yet.