Designing MCP tools agents use well
For engineers
Fewer, task-level tools with clear names, compact results and actionable errors, tested against real agent runs
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A server has one tool per REST endpoint. Agents often need four calls in a fixed order to finish one job. What is the best redesign?
Check yourself · 2 of 5
A search tool returns 40 records with 25 fields each, and agents run out of context. What is the best first fix?
Check yourself · 3 of 5
Two MCP servers each expose a tool called search. What is the most direct fix?
Check yourself · 4 of 5
An agent calls a tool with a project name that does not exist. Which error message helps it most?
Check yourself · 5 of 5
Which eval task best exposes problems in a tool set?
Topics
- Workflow-level tools instead of thin API wrappers4 min read · Combining endpoint-per-tool designs into tools that match real tasks, so agents make fewer calls and fewer wrong choices
- Compact, meaningful tool results for agents5 min read · Names instead of opaque ids, pagination and truncation with next-step hints, concise and detailed response modes, and structured output
- Tool names and descriptions agents choose correctly5 min read · Namespaced names, unambiguous parameter names, descriptions written like instructions to a new colleague, and examples of valid input
- Actionable tool errors agents can recover from5 min read · Error results that say what was wrong and what to try instead, input validation messages, and never raw stack traces
- Evaluating tool designs with agent transcripts5 min read · Realistic eval tasks, success rate, call count and token use per task, reading transcripts for confusion, and letting an agent propose fixes
Start here
- Writing effective tools for AI agents (Anthropic) (opens in a new tab)ArticleFree
Anthropic's field guide: which tools to build, namespacing, token-efficient responses, prompt-engineered descriptions and eval-driven iteration.
- MCP specification: Tools (opens in a new tab)StandardFree
The protocol definition of tool listings, input and output schemas, structured content and the isError flag.
- Introducing advanced tool use (Anthropic) (opens in a new tab)ArticleFree
Techniques for large tool sets, such as loading tools on demand and calling them from code, and why they matter for context cost.
Scenarios
Helps to know first
110 questions · last verified 2026-12