MCP tool annotations explained
What readOnlyHint, destructiveHint, idempotentHint and openWorldHint mean in the MCP spec, what the defaults are, and how Claude and ChatGPT reviewers use them.
Tool annotations are four optional booleans and a title on each tool in your tools/list response. They are small, and they are the most common reason a connector fails automated review. Both the Claude directory and the ChatGPT directory check them, and the defaults in the spec are not what most authors assume.
Sources: the MCP schema reference for the definitions, the tools spec, Claude's review criteria, and OpenAI's plugin guidelines and MCP server guide.
The four hints and their defaults
From the schema:
| Annotation | Meaning when true | Default if omitted |
|---|---|---|
readOnlyHint | The tool does not modify its environment | false |
destructiveHint | The tool may perform destructive updates. false means additive updates only. Meaningful only when readOnlyHint is false | true |
idempotentHint | Calling repeatedly with the same arguments has no additional effect. Meaningful only when readOnlyHint is false | false |
openWorldHint | The tool may interact with an open world of external entities. false means a closed domain | true |
Read the defaults twice. A tool with no annotations is, to a client, a tool that writes, may destroy things, is not safe to retry, and reaches the open internet. That is the most alarming reading available, and it is what a client assumes when you say nothing. Anything you can honestly narrow, narrow.
There is also a title, a human-readable name for the tool used in UIs. The schema's display precedence is the top-level title, then annotations.title, then name.
The spec says these are hints
The schema is blunt: all properties in ToolAnnotations are hints, not guaranteed descriptions of behavior, and clients should never make tool-use decisions based on annotations from untrusted servers. The tools spec repeats that clients must consider annotations untrusted unless they come from trusted servers.
OpenAI's docs add the other half: annotations "do not grant permission or replace authentication, authorization, scope checks, input validation, or human confirmation for irreversible operations". Set them honestly, then enforce the real rules on your server.
How Claude uses them
Claude's review criteria require every tool to have a title and the applicable hint: readOnlyHint: true for read-only tools and destructiveHint: true for tools that modify or delete data. The stated use: Claude can use the 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, depending on user, organization and conversation permission settings.
You see this in the submission portal as well. The Tools step syncs your tools and groups them by whether their annotations declare them read-only or write, and it flags tools missing titles or annotations. Fix those on your server before submitting.
Two rules next to the annotations matter just as much for review:
- A tool that accepts both safe and unsafe HTTP methods is rejected, however well you annotate it. Split it.
- Annotating a tool
readOnlyHint: truewhile it writes is the kind of mismatch a Verified reviewer finds, because that review runs every tool.
How ChatGPT uses them
OpenAI is stricter about completeness. The guidelines require readOnlyHint, destructiveHint and openWorldHint to be explicit true or false on every tool, set to match actual behavior. The submission scan reports annotations_required if any of the three is missing or inaccurate. OpenAI's docs do not describe idempotentHint, so set it where it is true, but do not expect it to be checked.
OpenAI's definitions:
readOnlyHint: truefor retrieval, computation or previews.falsefor external state changes, persisted artifacts, stateful jobs, queued work, or outbound writes like posting, emailing and uploading.destructiveHint: truefor deletion, overwriting, cancellation, access revocation, and irreversible sends or transactions.falseonly for additive writes. The guidelines say reversibility alone does not justifyfalse, which means an "archive" tool you consider reversible still counts if it overwrites.openWorldHint: truefor public or open-ended entities such as web search or arbitrary destinations.falsefor a bounded private account, workspace or catalog, even if it is hosted externally. Connectivity alone does not decide it.
The guidelines page says justifications for annotations are no longer required, but the errors page still lists a justification_required error. If the portal asks, write one sentence per annotation.
A decision table for your tools
| Tool does | readOnly | destructive | idempotent | openWorld |
|---|---|---|---|---|
| Fetch a record from your own database | true | false | n/a | false |
| Search the public web or an arbitrary URL | true | false | n/a | true |
| Create a record, new one each call | false | false | false | false |
| Create or update by a client-supplied key | false | false | true | false |
| Update fields on a record | false | true* | true | false |
| Delete, cancel, revoke | false | true | true | false |
| Send an email or post a message | false | true | false | true |
*An update that overwrites previous values is destructive under OpenAI's rule. An update that only fills empty fields is additive.
For read-only tools set destructiveHint: false explicitly. The spec says destructive is only meaningful when read-only is false, but OpenAI wants all three explicit, and an explicit false is cheaper than a failed scan.
Setting them
Raw tools/list output:
{
"name": "cancel_order",
"title": "Cancel order",
"description": "Use this when the user asks to cancel an order that has not shipped. Cancels the order and issues a refund. Cannot be undone.",
"inputSchema": {
"type": "object",
"properties": { "order_id": { "type": "string", "description": "Order ID, for example ord_1042" } },
"required": ["order_id"]
},
"annotations": {
"title": "Cancel order",
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": true,
"openWorldHint": false
}
}
With the TypeScript SDK, pass them when you register the tool:
server.registerTool(
"cancel_order",
{
title: "Cancel order",
description: "Use this when the user asks to cancel an order that has not shipped. Cancels the order and issues a refund. Cannot be undone.",
inputSchema: { order_id: z.string() },
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
},
handler,
);
Then fetch the live tools/list and check what the server actually sends. A stale build or a proxy that rewrites responses can make the wire differ from the source.
Mistakes we see
- One block copied to every tool. All tools
readOnlyHint: true, including the write ones. Reviewers read the tool names;create_anddelete_tools marked read-only fail. - Read tools with no hints. The default says they write. A client treats them as writes and asks for confirmation on every call.
- Write tools marked read-only to avoid prompts. It makes a Verified or ChatGPT review fail, and it removes a safety net your users rely on.
openWorldHintguessed. The question is whether the target set is bounded, not whether you call the network. A query over your own customer's data is closed. A fetch of any URL the model supplies is open.- Descriptions that contradict the hints. A tool described as "permanently deletes" with
destructiveHint: false. - Annotations present in code, absent at runtime. Always check the wire.
- Catch-all tools. A single
executeorapi_requesttool cannot be annotated honestly, because one hint set cannot describe both its safe and unsafe uses.
What a scan checks
Our scan reports missing annotations, missing titles, non-explicit ChatGPT hints, read-named tools not marked read-only, delete-named tools not marked destructive, write tools marked read-only, contradictory hints, undeclared idempotency on write tools, and identical annotations across all tools. Those are heuristics built from the rules above. They flag likely problems, and the reviewer decides.
Check your server
Run the free scan at /scan to see the annotations your server sends today and which tools would be flagged.
Check your server against these rules
Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.