Skip to content

CCAR-F practice question / AI & Anthropic Fundamentals

A research application uses the Claude Messages API with a client-executed search tool. Claude has returned a...

Question 6

AI & Anthropic Fundamentals
A research application uses the Claude Messages API with a client-executed search tool. Claude has returned a tool_use block. The search produces a relevant JSON result that fits the current context budget. How should the application provide that result for Claude's next turn?

Show the answer and explanation

Correct answer: B. Preserve the assistant's tool_use message and follow it with a user message containing a tool_result block whose tool_use_id matches the request and whose content includes the relevant search result.

In a Messages API client-tool exchange, the application supplies the operation's result through a tool_result block linked to the preceding tool_use ID. Preserving that exchange lets Claude use the returned evidence; an inaccessible record ID or a generic success statement does not provide the result. This is the Claude API message format, not a universal MCP transport requirement. MCP tool results can contain content, structuredContent, or resource links that the host integrates as appropriate. Neither protocol requires every large raw payload to be inserted unaltered into every model request. Applications should supply the relevant evidence within their context budget and preserve a way to retrieve additional detail when needed.

Sign in to report an error

Related objective

Agentic architecture: choose and test the control loop | CertLabs
Practice every CCAR-F domain with spaced repetition.Sign up free

These are original practice questions, not official exam questions. Practice results do not predict an exam outcome.