AI Certificates

CCDV-F Tools and MCPs practice questions

10.6% of the CCDV-F exam. These worked examples come from free Form 1, with an explanation for every answer option.

D8 Tools and MCPsCCDV-F · Form 1 · free

An agent with access to 24 tools often invokes one tool, gets an unhelpful result, then retries with a different overlapping tool. Which two changes most directly improve its tool selection?

  1. A

    Raise the max_tokens limit so the model has more room to reason before selecting a tool.

    Raising max_tokens changes the response length budget, not how tools are described or distinguished, so wrong-tool picks continue at the same rate.

  2. B

    Rewrite each description to state when its tool applies and how it differs from similar ones.Correct

    Descriptions are the model's main evidence for choosing among tools, and spelling out when each applies and where its boundary sits directly targets wrong-tool picks.

  3. C

    Sort tool definitions alphabetically so related operations sit next to each other in the request.

    Tidying the order may help humans read the request, but the model selects on names, descriptions, and schemas, not on list position.

  4. D

    Enable parallel tool use so the model can try several candidate tools in one turn.

    Parallel tool use speeds up independent calls; firing overlapping candidates together multiplies wrong calls rather than preventing them.

  5. E

    Consolidate the tools whose purposes overlap into a smaller set of clearly separated operations.Correct

    A smaller set with no overlapping purposes removes the ambiguity that causes the misfires in the first place.

The principle

Tool selection quality is driven by the tool set itself: precise descriptions that say when each tool applies, and a set small and distinct enough that no two tools compete for the same job.

D8 Tools and MCPsCCDV-F · Form 1 · free

A developer's Messages API response ends with stop_reason "tool_use" for a custom weather tool. What must the application do before the model can produce its final answer?

  1. A

    Wait for the API to run the tool and stream the finished answer in the same response.

    Server-side tools such as web search do execute on Anthropic's infrastructure, but a custom tool is client-side, so the API will never run it for you.

  2. B

    Execute the tool in application code, then return a tool_result block for the tool_use id.Correct

    Custom tools are client-side: the application runs the call itself and returns the output in a tool_result block tied to the tool_use id so the model can continue.

  3. C

    Retry the same request so the model answers from its own knowledge instead of calling the tool.

    Retrying supplies none of the data the model asked for, and the model is likely to stop with the same tool_use request again.

  4. D

    Show the tool's raw output to the end user and open a new conversation thread.

    The output belongs back in the conversation as a tool_result; opening a new thread abandons the pending tool call and its context.

The principle

A tool_use stop means the model has paused and is waiting on the client: for custom (client-side) tools, the application executes the call and returns a tool_result before the model can finish its answer.

D8 Tools and MCPsCCDV-F · Form 1 · free

Larkspur Logistics runs an agent that files shipping claims through a claims-API tool. Roughly 4 percent of calls fail with a transient 503, and the harness currently raises an exception that kills the run, throwing away up to 20 minutes of agent progress. The team wants the agent to recover on its own. How should the harness handle a failed tool call?

  1. A

    Have the harness retry failed calls quietly until they succeed, keeping error details out of the conversation.

    A bounded harness-level retry can absorb some transient faults, but hiding failures means the model can never change course when retries keep failing.

  2. B

    Catch the exception and end the turn with a message asking the user to rerun the task later.

    That stops the crash yet still discards the run's progress and shifts recovery onto the user instead of the agent.

  3. C

    Return the error text in the tool_result marked as an error so the model can adjust its approach.Correct

    Reporting the failure as an error-flagged tool result keeps the loop alive and gives the model the information to retry, back off, or route around the fault.

  4. D

    Validate every input parameter before dispatch so calls that would fail are never sent.

    Input validation catches malformed requests before dispatch, but a transient 503 is a server-side fault that perfectly valid calls still hit.

The principle

Agent harnesses should surface tool failures to the model as error-marked tool results, converting infrastructure faults into information the agent can reason about and recover from instead of crashes that end the run.

Start free CCDV-F Form 1The eight domains