Effective Tool Descriptions
Definition
Design guidance for a tool's description field — the single most important factor in tool-use performance — plus how to structure tools and their return values so Claude routes correctly.
Key points
- Write ≥ 3–4 sentences: what the tool does, when to use it (and when NOT), what each parameter means, caveats/returns.
- Consolidate related operations into one tool with an
actionparameter (e.g.github_pr: create | review | merge) rather than many near-duplicate tools. - Use prefixes to namespace tools (
github_list_prs). - Tool responses should return high-signal fields + stable IDs (slugs / UUIDs), not opaque internal references.
- The description drives routing — poor descriptions are the root cause of tool misrouting.
Why it matters for the exam
- "Which change most improves tool selection?" → almost always improve the description, not the model or
tool_choice. - Tool-misrouting diagnosis questions point back to weak descriptions.
Common gotchas
- Returning opaque internal refs instead of stable IDs breaks downstream chaining.
- One-line descriptions underperform; the exam favours the detailed multi-sentence answer.
See also
Sources
Referenced by
- Agentic Tool Evaluation Loop
- Built-in Tools
- Context Management & Reliability
- Input Examples
- Lost In The Middle
- Poka-Yoke Tool Design
- Structured Tool Errors
- Subagent Error Handling
- Token-Efficient Tool Responses
- Token-Efficient Tool Use
- Tool Definition Schema
- Tool Design & MCP Integration
- Tool Name Regex
- Tool Namespacing
- tools-mcp-01
Practice questions optional · AI
Generate fresh practice questions about this concept with AI. These are not vault-verified.