Skip to main content

MCP Tool Annotations Module

Tool annotations provide behavioral hints to MCP clients about how tools behave. This follows the MCP 2025-11-25 specification.

Annotation Hints

Code Usage

Default Annotations

Read-Only Tool

Destructive Tool

Idempotent Tool

Closed-World Tool

Tool Schema Output

Annotations are included in the MCP schema:
Output:

Custom Title Annotation

Category and Tags

Automatic Hint Inference

The registry bridge can infer hints from tool names:

Searching by Annotations

Best Practices

  1. Set readOnlyHint=True for tools that only retrieve data
  2. Set destructiveHint=True for tools that delete or modify data irreversibly
  3. Set idempotentHint=True for tools safe to retry on failure
  4. Set openWorldHint=False for internal/local-only tools

See Also