MCP tool annotations are optional hints a server attaches to each tool to say how it behaves. readOnlyHint: true says the tool doesn't modify its environment, and destructiveHint says whether a tool that does modify things may delete or overwrite. Clients use them to label tools and decide when to ask before running one, but the MCP specification is clear that they are hints, not guarantees. The real control has to live in the server.
This guide covers the five annotations, their defaults, how Claude uses them, and how a live read-only server, the Hosted MCP Server for Linnworks, sets them.
What are MCP tool annotations?
Every tool an MCP server lists has a name, a description and an input schema. It can also carry an annotations object. The MCP schema defines five fields:
- title: a human-readable name for the tool.
- readOnlyHint: if true, the tool does not modify its environment. Default: false.
- destructiveHint: if true, the tool may perform destructive updates; if false, it only makes additive ones. Default: true. It only means something when readOnlyHint is false.
- idempotentHint: if true, calling the tool again with the same arguments has no further effect. Default: false. It also only means something when readOnlyHint is false.
- openWorldHint: if true, the tool may interact with an open world of external entities, as a web search does; if false, its world is closed, as a memory tool's is. Default: true.
Why do the defaults matter?
Put the defaults together and a tool with no annotations at all is described as the riskiest kind: not read-only, possibly destructive, not safe to repeat, and reaching outside the server. That is the cautious assumption for a client to make. For a server author, it means a read tool you forget to annotate looks, to the client, just like a delete.
So if a tool only reads, say so with readOnlyHint: true. If a tool writes, set destructiveHint explicitly rather than leaning on the default, so the next developer can see someone thought about it.
Why are they only hints?
The tools page of the specification says clients must consider tool annotations untrusted unless they come from trusted servers, and the schema adds that clients should never make tool use decisions based on annotations received from untrusted servers. An annotation is something the server says about itself. A badly written server can mislabel a tool by accident, and a malicious one can do it on purpose.
That has two consequences:
- For people connecting a server, an annotation is a label, not a promise. Whether a tool really only reads depends on the server's code and on who runs it.
- For people building a server, annotations don't replace access control. If a tool must never write, make sure in code that it can't, then use the annotation to tell clients what you've done.
How does Claude use them?
Anthropic's connector pre-submission checklist requires every tool in a directory submission to have a title and the applicable hint: readOnlyHint: true for read-only tools and destructiveHint: true for tools that modify or delete data. It says Claude can use these hints to decide when to ask the user for confirmation. Read-only tools can run without per-call confirmation and destructive tools can require it, and whether they do can depend on the user's settings, the organisation's settings and the conversation's permission setting.
The same checklist rejects a single catch-all tool that accepts both safe HTTP methods, such as GET, and unsafe ones, such as POST or DELETE. Reads and writes have to be separate tools, which is also what makes per-tool annotations meaningful.
What does a read-only server look like in practice?
The Hosted MCP Server for Linnworks is read-only. Its Starter plan has 11 tools covering open and processed orders, stock, purchase orders, and returns and refunds, and none of them change anything in Linnworks. In its source, every one of those tools is registered with a title and the same two annotations:
readOnlyHint: true, because each one only reads.openWorldHint: true, set explicitly although it is also the default, because each tool reads from an outside system: the merchant's live Linnworks account.
Neither destructiveHint nor idempotentHint is set, because the schema says both only mean something when a tool is not read-only.
The annotations are not what keep the server read-only, though. A single policy table lists every tool and whether it writes, the server registers only the tools an account's plan allows, and every call re-checks the account before it runs. Read-only AI access to Linnworks walks through those checks. The annotations describe the result to the client.
How should you annotate your own tools?
- Split reads from writes. One tool per kind of action. A
methodparameter that switches between reading and writing makes every annotation wrong half the time. - Give every tool a title. It is what people see in a client's interface, and Claude's directory checklist requires it.
- Mark every pure read with readOnlyHint: true. Without it, the client has to assume the tool may change data.
- Set destructiveHint on every write. True for anything that deletes, overwrites or archives; false only for tools that purely add, such as creating a new record.
- Set idempotentHint only when it holds. A tool that sets a field to a fixed value may be safe to repeat; a tool that creates a new record each time is not.
- Enforce it in code. Annotations describe; your server's access checks decide. Treat any mismatch between the two as a bug.
- Check what the client sees. List your tools from a real client, or from the MCP Inspector, and read the annotations back.
Annotations are one part of tool design. Names, descriptions and schemas matter just as much: MCP tool descriptions: best practices covers those.
MCP-G is part of Green & Home Limited and is not affiliated with, endorsed by or sponsored by Linnworks or Anthropic.
Want an assistant that can read your Linnworks orders and stock but has no tool that changes them? Start a 14-day free trial of the Hosted MCP Server for Linnworks.