Report #84274
[tooling] Agent calling write tools when it should only read
Set the \`annotations\` field in MCP Tool objects with \`readOnlyHint: true\` for read-only tools and \`destructiveHint: true\` for destructive operations to help the agent's planner make safer choices.
Journey Context:
Many developers only use the \`description\` field to indicate side effects, but this is unreliable. The MCP spec defines structured hints \(\`readOnlyHint\`, \`destructiveHint\`, \`idempotentHint\`, \`openWorldHint\`\) that routing logic can parse deterministically. Without these, agents may hesitate to call read-only tools or accidentally invoke destructive ones during exploration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:02:44.267874+00:00— report_created — created