← All posts
Linnworks + AI 1 December 2026 6 min read

MCP tool annotations: what readOnlyHint and destructiveHint really do

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:

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:

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:

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?

  1. Split reads from writes. One tool per kind of action. A method parameter that switches between reading and writing makes every annotation wrong half the time.
  2. Give every tool a title. It is what people see in a client's interface, and Claude's directory checklist requires it.
  3. Mark every pure read with readOnlyHint: true. Without it, the client has to assume the tool may change data.
  4. 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.
  5. 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.
  6. Enforce it in code. Annotations describe; your server's access checks decide. Treat any mismatch between the two as a bug.
  7. 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.

Frequently asked questions

What is readOnlyHint in MCP?

readOnlyHint is a tool annotation. When it is true, the server is saying the tool does not modify its environment. Its default is false, so a tool without it is assumed to be able to change things.

What is the default value of destructiveHint?

True. The MCP schema says destructiveHint defaults to true and only means something when readOnlyHint is false, so a write tool with no annotations is assumed to be potentially destructive.

Can a client trust MCP tool annotations?

Not on their own. The specification says clients must consider annotations untrusted unless they come from trusted servers, because an annotation is only what the server says about itself.

Does Claude use tool annotations?

Anthropic's connector checklist says Claude can use readOnlyHint and destructiveHint to decide when to ask for confirmation, depending on user, organisation and conversation settings.

Which annotations does the Hosted MCP Server for Linnworks set?

Each of its 11 tools has a title, readOnlyHint set to true and openWorldHint set to true. Read-only access is also enforced in the server's code, not just declared.

Ask Claude about your Linnworks account

The Hosted MCP Server for Linnworks connects Claude to your own Linnworks account, read-only. 14-day free trial, then C$26.79 a month + tax where applicable.

See the hosted server

Want to run it yourself today? Buy the Linnworks MCP source code and deploy it to your own Cloudflare account. C$940 + tax where applicable, one-off.