D8: Tool Use (Function Calling) Mechanics
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
What are the parts of a tool definition?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Tool Use (Function Calling) Mechanics practice questions and answers
- What are the parts of a tool definition?name, description and input_schema (JSON Schema).
- What does Claude return when it wants a tool?A tool_use content block with id, name and input, and stop_reason tool_use.
- How do you return a tool's result?In the next user message as a tool_result block with the matching tool_use_id.
- How do you report a tool failure to Claude?Return a tool_result with is_error: true and a helpful error message.
- What are the tool_choice options?auto (Claude decides), any (must use some tool), tool (a specific tool) and none.
- What is parallel tool use?Claude requesting several tool calls in one response; return all results together.
- Who executes client tools?Your application.
- What does strict mode on a tool do?Ensures Claude's tool inputs exactly match the input schema.
- Do tool definitions use tokens?Yes; they're added to input tokens on every request (cache them).
- How can you force structured output with tools?Define a tool whose schema is the desired output and force it with tool_choice.