Interview practice question
Agent invents tool arguments
Machine Learning · AI Agents · Beginner
Your agent sometimes passes made-up customer IDs to tools instead of looking them up. How do you prevent this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Instructions: never guess IDs; look them up or ask.
- Provide lookup tools (search by name/email).
- Validate arguments; return clear errors.
- Strict schemas with formats.
- Ask the user when information is missing.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.