CrabTalk
Blog

MCP tool annotations: what readOnlyHint and destructiveHint actually do

MCP tool annotations explained: readOnlyHint, destructiveHint, idempotentHint and openWorldHint, their defaults, and what Claude, ChatGPT and VS Code do.

CrabTalk Team

MCP tool annotations are four booleans a server attaches to a tool to describe its behaviour: readOnlyHint, destructiveHint, idempotentHint and openWorldHint. Clients use them to decide whether to ask before a call, whether to run calls in parallel, and whether a retry is safe. They don't restrict what the tool does. "A server can claim readOnlyHint: true and delete your files anyway," as the MCP maintainers put it (Tool Annotations as Risk Vocabulary, March 16, 2026). This post covers what each hint means, its default, and what clients do with it today.

The four hints and their defaults

{
  "name": "delete_file",
  "annotations": {
    "title": "Delete file",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  }
}
Hint true means Default
readOnlyHint The tool doesn't modify its environment false
destructiveHint It may delete or overwrite true
idempotentHint Calling it again with the same arguments has no further effect false
openWorldHint It interacts with an open-ended set of outside entities, such as the web; a bounded workspace is closed even when hosted elsewhere true

The defaults assume the worst: a tool without annotations may write, destroy, repeat its effect and reach the internet. destructiveHint and idempotentHint only mean something when readOnlyHint is false. Annotations shipped in the 2025-03-26 revision. title, the name shown to people, sits beside them; we cover it in How to name MCP tools.

Annotations are untrusted

The specification says "clients MUST consider tool annotations to be untrusted unless they come from trusted servers" (tools, 2026-07-28). Any server can send any hint. A client that auto-approves read-only tools from any server has handed its approval policy to every server it connects to. The maintainers' post sums it up: "They aren't enforcement."

What clients do with them

Client What the hints change
Claude connectors "Read-only tools can run without per-call confirmation, and destructive tools can require it", depending on user and organization settings. Directory review requires "a title and the applicable hint" on every tool.
Claude Code readOnlyHint: "Claude Code also runs the tool's calls in parallel with other read-only calls." idempotentHint marks a tool as safe to call again after a reconnect.
ChatGPT Requires readOnlyHint, destructiveHint and openWorldHint on app tools. "These hints only influence how ChatGPT or Codex frames the tool call to the user." Review can flag a wrong annotation.
VS Code Its docs mention readOnlyHint, and its approval policy, per server or per tool, still applies.

The maintainers found in March that no client yet showed annotations as context in the approval prompt itself: "none surface annotations as context in approval prompts".

How to set them

  • Set all four on every tool. Leaving one out means its pessimistic default, and ChatGPT requires three of them.
  • readOnlyHint: true only when the tool can't change state. OpenAI's guidance is the same: "true only when the tool cannot change state." A search that also logs the query to an analytics table writes.
  • idempotentHint describes the second call, not the first. "Set a user's email to X" is idempotent; "send an email" is not, unless the server deduplicates; see idempotency keys for agent tool calls.
  • Enforce on the server anyway. The hint tells the client what to expect. Authorization and validation still belong to the server.

Backing the read-only hint on the server

A hint is more useful to a client when the server backs it. CrabTalk does this with two tools. Over MCP, service tools are reached through query and call:

Tool readOnlyHint destructiveHint Runs
query true false Only tools their service marked #[tool(query)]
call false true Any account-callable tool, query tools included

query refuses a tool that isn't marked query, and its refusal names call as the alternative. A query tool can't write to its service's storage, logs or wakes. It can still make outbound HTTP requests, which may have effects elsewhere, and a successful priced query charges the paying account, unless the paying account owns the service or is the personal account of one of its org's members. A client that auto-approves read-only tools can approve query and keep asking for call.