The Tool Use API is the low-level mechanism behind all multi-agent patterns. Understanding tool_choice, stop_reason, and tool structure is essential for the technical questions on the exam.
Objective: write a complete tool with name, description, and input_schema. The description is often underestimated — it guides Claude in deciding whether to use the tool.
Ask Claude to create a complete tool and explain what it must cover:
Dig deeper into the description question:
A tool description = the instruction to Claude for deciding WHEN to call it. It must include: what the tool does, when to use it, when NOT to use it (frequent ambiguities), and constraints on inputs. Without this, Claude may over-use or ignore it.
Objective: concretely understand what each tool_choice value does and when to use it.
Explore the 3 modes:
Practical choice scenario:
"tool_choice: any guarantees Claude will use all available tools" → FALSE. any guarantees that at least ONE tool will be called, not all. Claude chooses which one is most appropriate among the available tools.
Objective: understand the complete agentic loop cycle and the 2 stop_reason values that drive it.
Visualize the agentic loop:
tool_use → continue (execute the tool, send back the result). end_turn → exit (Claude finished without wanting a tool). The tool message must include tool_use_id + content of the result.
API call → Claude responds. If stop_reason: "tool_use": execute the tool(s), send back results, loop again. If stop_reason: "end_turn" AND no tool_use in the response: end of loop, final response to user.
Objective: master the exact model IDs and their positioning (speed/cost vs capability). Frequent exam questions.
Learn the exact IDs and use cases:
claude-haiku-4-5-20251001 — speed/volume. claude-sonnet-5 — balance. claude-opus-5 — complex reasoning. claude-fable-5-1 — storytelling.
Positioning test: find the right model:
"Opus is always the best choice" → FALSE. Opus is the most expensive and slowest. For simple or high-volume tasks, Haiku is superior (cost/performance ratio). Multi-agent architectures often use Haiku for routing and Opus only for complex tasks.