Question 27
Domain 4The model has two tools: `search_logs` and `query_logs`. It consistently calls `query_logs` when it should call `search_logs`. First fix?
Correct answer: B
Explanation
Tool selection depends on the descriptions the model reads, so the first fix is to rewrite both descriptions to clearly state each tool’s scope and expected use. If `query_logs` is being chosen when `search_logs` is needed, the descriptions likely overlap or are ambiguous, and clearer wording reduces that confusion.
Why each option is right or wrong
A. Merge them into one tool with a `mode` parameter.
Combining tools hides the distinction instead of teaching the model when each behavior applies.
B. Rewrite both tool descriptions to spell out scope, expected
The first remediation is to edit the tool metadata, because the model’s routing behavior is driven by the descriptions it reads at selection time. Under the function-calling/tool-selection mechanism, ambiguous or overlapping descriptions cause misrouting, so clarifying each tool’s scope and intended use is the direct fix before changing prompts or adding examples.
C. Add a long `system` prompt block listing which tool to use
Long system instructions are weaker than precise per-tool descriptions for tool routing.
D. Drop `query_logs` and reimplement everything inside
Removing a tool is a redesign, not the first fix for ambiguous selection behavior.