CCAR-F practice › Tool Design & MCP Integration · Question 37 of 105
Tool Design & MCP Integration
An extraction pipeline must call extract_metadata before any enrichment tools, because they need its output. In about 10% of runs the model calls an enrichment tool first. What is the most reliable fix?
Show answer and explanation
Answer: A — Force tool_choice to extract_metadata on the first request, then use follow-up turns
Forced selection ({"type": "tool", "name": "extract_metadata"}) guarantees which tool runs first. After its result is appended, follow-up turns let the model choose the enrichment tools (a). A prompt instruction (b) makes the order likely, not guaranteed. 'any' (c) guarantees a tool call but not which one. A single combined tool (d) removes the model's ability to choose enrichment steps and blurs the tools' contracts.
Keep going
More Tool Design & MCP Integration questions
- A classification step offers the model three tools and must always produce one of them…
- A team's .mcp.json, committed to the repository, configures a GitHub MCP server with an…
- A team is standardizing Claude Code MCP setup. They need Jira for everyone, and one…
- An agent is connected to an internal MCP server whose search_code tool indexes all 40…
- A support agent connected to an internal knowledge-base MCP server spends many tool…