Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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