← All lessons
Tools & MCP~15 min
The Tool Use Loop: input_schema, tool_use, and tool_result
Master the request/response mechanics of the Anthropic Messages API tool-use loop and tool_choice modes.
What you will be able to do
- ✓Identify the three pieces of a tool definition (name, description, input_schema) and what input_schema declares
- ✓Trace the full tool-use round trip: tool_use block out, tool_result block back, matched by id
- ✓Distinguish the four tool_choice modes (auto, any, tool, none) and when each applies
- ✓Explain parallel tool use and how multiple results are returned in one user turn
3 concepts·5 hands-on exercises·3-question check