Your question is Debug Incorrect Agent Tool Calls. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You are building an LLM agent that can answer user requests by calling tools. In testing, the agent keeps choosing the wrong tool, passing malformed arguments, or calling a tool when it should answer directly. You need a disciplined way to debug the behavior before shipping.
How do you debug a tool the agent keeps calling incorrectly?