Your question is Debug Hallucinated Tool Parameters. 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 calls external APIs to complete user tasks. In testing, the agent repeatedly invents parameter values or passes fields that are not in the tool schema. The behavior is intermittent, so simple prompt tweaks have not fixed it.
If an LLM agent repeatedly hallucinates parameters when calling an external API tool, how would you systematically debug and resolve this issue?