Skip to content

Commit 59787a2

Browse files
julienldclaude
andcommitted
docs: update safety annotations with correct MCP spec definitions
Include defaults and proper descriptions matching the MCP specification for readOnlyHint, destructiveHint, and idempotentHint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0220708 commit 59787a2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,11 @@ def register_<domain>_tools(mcp, client, **kwargs):
612612
```
613613

614614
### Safety Annotations
615-
| Annotation | Use For |
616-
|------------|---------|
617-
| `readOnlyHint: True` | No side effects |
618-
| `idempotentHint: True` | Safe to retry |
619-
| `destructiveHint: True` | Deletes data |
615+
| Annotation | Default | Use For |
616+
|------------|---------|--------|
617+
| `readOnlyHint: True` | `False` | Tool does not modify its environment |
618+
| `destructiveHint: True` | `True` | Tool may perform destructive updates (only meaningful when `readOnlyHint` is false). Set to `False` for non-destructive writes (e.g., creating a record) |
619+
| `idempotentHint: True` | `False` | Repeated calls with same args have no additional effect (only meaningful when `readOnlyHint` is false) |
620620

621621
### Error Handling
622622
Use structured errors from `errors.py`:

0 commit comments

Comments
 (0)