AG-030
Conflicting Read-Only Tool Declaration
medium
Page text and source link for your AI assistant. Nothing is sent automatically.
When this rule triggers
The same tool explicitly claims to be read-only while declaring writing, modification, or destructive behavior. Descriptions and names alone are not used. MCP hints do not establish enforced behavior.
How to fix
Align declarations with actual behavior and enforce write restrictions in the tool or host. Do not auto-approve actions solely because a tool advertises a read-only hint.
Example change
For a tool that deletes records: Before: readOnlyHint: true, destructiveHint: true After: readOnlyHint: false, destructiveHint: true
Verify the change
Check the implementation before changing its hints. Rescan consistent declarations and separately verify the intended write restrictions.