Courseiva
Tools and MCP Integration →mediumMultiple Choice

CCDV-F Tools and MCP Integration Practice Question

A developer is implementing a weather-reporting agent using Claude 3.5 Sonnet. After Claude generates a tool_use block for the 'get_weather' tool, the developer fetches the data. What is the correct next step to ensure Claude can finalize its response to the user?

⚠ Common exam trap

Candidates often try to send the tool result as a new 'assistant' message or a standard user message without the required 'tool_result' block, breaking the expected tool-use protocol.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Send a new user message containing a 'tool_result' block with the 'tool_use_id'.

The tool use lifecycle requires a multi-turn interaction where the model first requests a tool execution. Once the developer executes the tool locally, they must return the result to Claude in a new 'user' message with a 'tool_result' block. This allows Claude to incorporate the external data into its final synthesis and provide an accurate answer to the original query.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Append the tool results directly to the end of the previous assistant message.

    Why it's wrong here

    Appending results to the assistant message violates the message structure of the Anthropic API. Assistant messages are reserved for the model's output only, and modifying them causes schema validation errors. The model expects the environment results to be provided in a subsequent message from the user role to maintain proper conversational flow.

  • ✓

    Send a new user message containing a 'tool_result' block with the 'tool_use_id'.

    Why this is correct

    Sending a user message with a 'tool_result' block is the mandatory way to provide data back to Claude. The 'tool_use_id' must match the ID provided by Claude in the previous turn, enabling the model to link the result to the specific request it made, ensuring logical consistency in complex workflows.

  • ✗

    Update the system prompt with the new weather data and restart the session.

    Why it's wrong here

    Updating the system prompt and restarting the session is inefficient and loses the context of the current conversation. While system prompts provide instructions, they are not designed for the dynamic injection of tool outputs. This approach would force the model to re-process the entire interaction, significantly increasing latency and token costs.

  • ✗

    Issue a second assistant message that includes the weather data as a JSON string.

    Why it's wrong here

    The assistant role cannot be used to inject external data into the conversation history. Assistant messages are strictly for model-generated content. Providing external data as an assistant message would confuse the model's perception of what information it generated versus what information was provided by the external tool execution environment.

About these practice questions

One of 257 original CCDV-F practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Anthropic exam blueprint

This CCDV-F practice question is part of Courseiva's free Anthropic certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCDV-F exam.