MCP Shipyard
← Rules catalog

MCP tool annotations missing: readOnlyHint, destructiveHint, openWorldHint fix

Every MCP tool needs annotations. Claude's portal flags tools without them and ChatGPT lists missing annotations as a rejection reason. Add them.

blockerannotations.missingClaude, ChatGPT

Every tool your server lists in tools/list should include an annotations object with title, readOnlyHint, destructiveHint and openWorldHint. The rule's fix text says Claude's portal flags tools without them and ChatGPT lists missing annotations as a rejection reason.

What you see

  • A scan reports annotations.missing with one hit per tool: "No annotations". It is a blocker.
  • In a directory submission, a message saying tools lack annotations or hints. Exact wording is not verified here.
  • Your tools/list result has no annotations key, or an empty {}.

Why it happens

Annotations are optional in the MCP tool schema, so SDKs and quick prototypes skip them. Directories use them to decide whether a tool needs user confirmation, so they require them.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
 | jq '.result.tools[] | {name, annotations}'

Streamable HTTP servers may answer as an event stream; strip the data: prefix before jq if so. Any tool showing "annotations": null fails.

Fix

TypeScript SDK:

server.registerTool(
  "get_order_details",
  {
    description: "Get one order's details. Use after search_orders returns an id.",
    inputSchema: { orderId: z.string() },
    annotations: {
      title: "Get order details",
      readOnlyHint: true,
      destructiveHint: false,
      openWorldHint: false,
    },
  },
  handler
);

Python (FastMCP):

@mcp.tool(annotations={"title": "Get order details", "readOnlyHint": True,
                       "destructiveHint": False, "openWorldHint": False})
def get_order_details(order_id: str) -> dict: ...

Set hints to match behaviour: readOnlyHint: true only for tools that never write; destructiveHint: true for tools that delete or overwrite.

Verify

Re-run the curl and jq command: every tool shows its annotations. Related rules annotations.claude-hint-missing and annotations.chatgpt-explicit-hints check the individual hints.

Which clients care

  • Claude: portal flags tools without annotations (rule text).
  • ChatGPT: missing annotations are listed as a rejection reason (rule text).

Source

Claude submission docs: https://claude.com/docs/connectors/building/submission

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server