Skip to content

Commit 2db18fc

Browse files
k-ibarakiclaude
andcommitted
docs: update MCP tool description guidelines based on lessons learned
Changed "Context Efficiency" section to prioritize LLM usability over brevity. Key points: - LLM's ability to use tools correctly is the top priority - Complex tools require detailed descriptions for correct usage - Token cost is acceptable if it ensures LLM doesn't misuse tools - Avoid verbose phrasing, but never sacrifice clarity for brevity This lesson came from attempting to shorten the sharepoint_excel tool description, which caused LLM to provide incorrect responses. The original detailed description was necessary for proper functionality. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 98ed299 commit 2db18fc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ def some_function():
8989
- [ ] Does this add significant value to justify the complexity?
9090

9191
**Context Efficiency**
92-
- Keep tool descriptions concise (they're included in every LLM call)
93-
- Prioritize essential information over exhaustive documentation
94-
- Use external docs (README) for detailed explanations
92+
- **LLM Usability First**: Tool descriptions must prioritize LLM's ability to use the tool correctly
93+
- Avoid verbose or redundant phrasing, but never sacrifice clarity for brevity
94+
- Include essential information that LLM needs for correct usage (modes, defaults, behavior)
95+
- Complex tools require detailed descriptions - token cost is acceptable if it ensures correct usage
96+
- Use external docs (README) for human-oriented explanations, not as replacement for tool clarity
97+
- **Lesson learned**: Overly brief descriptions can cause LLM to misuse tools, negating any token savings
9598

9699
### Project-Specific Guidelines
97100

0 commit comments

Comments
 (0)