MCP Shipyard
← Rules catalog

MCP tool missing readOnlyHint or destructiveHint: Claude directory check

Claude expects readOnlyHint true on read tools and destructiveHint true on tools that modify or delete data. A title alone does not pass.

majorannotations.claude-hint-missingClaude

Set readOnlyHint: true on tools that only read and destructiveHint: true on tools that modify or delete data. The rule annotations.claude-hint-missing is a major finding for Claude and fires when a tool has annotations but sets neither hint as a boolean.

What you see

  • A scan reports annotations.claude-hint-missing per tool: "Neither readOnlyHint nor destructiveHint is set".
  • If a tool has no annotations at all, you see annotations.missing instead (a blocker).

Why it happens

Authors add a title inside annotations and stop there. Claude's review criteria say every tool must include a title and the applicable hint, and give the reason: "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." The same page notes the outcome can depend on user, organisation and conversation permission settings, so treat the confirmation behaviour as a possibility, not a guarantee.

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 -r '.result.tools[] | select((.annotations.readOnlyHint | type) != "boolean" and (.annotations.destructiveHint | type) != "boolean") | .name'

Fix

Choose per tool:

ToolHints
get_order, list_ordersreadOnlyHint: true
create_shipment, update_addressreadOnlyHint: false, destructiveHint: false
cancel_order, delete_addressreadOnlyHint: false, destructiveHint: true

Set destructiveHint: true for any tool that deletes, overwrites or cancels. For ChatGPT, also set openWorldHint explicitly; see annotations.chatgpt-explicit-hints.

Verify

The jq command prints nothing, then re-scan. Cross-check with annotations.destructive-not-flagged and annotations.read-tool-not-readonly.

Which clients care

Claude, per the rule.

Source

Claude review criteria: https://claude.com/docs/connectors/building/review-criteria

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