You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add tool annotations for improved LLM tool understanding
Add readOnlyHint and destructiveHint annotations to all tools
to help LLMs better understand tool behavior and make safer decisions.
Changes:
- Added ToolAnnotations import from MCP SDK types
- Modified BaseTool class to support annotations property
- Added destructiveHint: true to CreateUiTool (creates/modifies files)
- Added readOnlyHint: true to FetchUiTool (read-only API call)
- Added destructiveHint: true to LogoSearchTool (writes to filesystem)
- Added destructiveHint: true to RefineUiTool (modifies components)
- Added openWorldHint: true to all tools (interact with external APIs)
- Added title annotations for human-readable display
- Bump MCP SDK from ^1.8.0 to ^1.25.1 for annotation support
This improves tool safety metadata for MCP clients.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments