feat: Add tool annotations for improved LLM tool understanding#111
Open
bryankthompson wants to merge 1 commit intoLaurieWired:mainfrom
Open
feat: Add tool annotations for improved LLM tool understanding#111bryankthompson wants to merge 1 commit intoLaurieWired:mainfrom
bryankthompson wants to merge 1 commit intoLaurieWired:mainfrom
Conversation
Add readOnlyHint and destructiveHint annotations to all 27 tools to help LLMs better understand tool behavior and make safer decisions. Changes: - Added readOnlyHint: true to 19 read-only tools (list, get, search, decompile, disassemble) - Added destructiveHint: true to 8 tools that modify data (rename, set) - Added title annotations for human-readable display - Bump MCP SDK from >=1.2.0 to >=1.8.0 for annotation support - Updated requirements.txt to match This improves tool safety metadata for MCP clients. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Author
|
Friendly ping! 👋 Just checking if this PR is still on your radar. Happy to address any feedback or make adjustments if needed. No rush - just wanted to make sure it didn't slip through the cracks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MCP tool annotations (
readOnlyHint,destructiveHint,title) to all 27 tools to help LLMs better understand tool behavior and make safer decisions about tool execution.Changes
Added
readOnlyHint: trueto 19 read-only tools:list_methods,list_classes,list_segments,list_imports,list_exports,list_namespaces,list_data_items,list_functions,list_stringssearch_functions_by_namedecompile_function,decompile_function_by_address,disassemble_functionget_function_by_address,get_current_address,get_current_functionget_xrefs_to,get_xrefs_from,get_function_xrefsAdded
destructiveHint: trueto 8 tools that modify data:rename_function,rename_data,rename_variable,rename_function_by_addressset_decompiler_comment,set_disassembly_commentset_function_prototype,set_local_variable_typeAdded
titleannotations for human-readable display on all toolsBump MCP SDK from
>=1.2.0to>=1.8.0for annotation supportUpdated
requirements.txtto matchWhy This Matters
Tool annotations provide semantic metadata that helps LLMs:
readOnlyHint: true)destructiveHint: true)title)Testing
from mcp.types import ToolAnnotations)tools/listreturns all 27 tools with proper annotationsLive Verification Output
🤖 Generated with Claude Code