Design tools with the model as the user. Give each one a clear name, a description that says when to use it and when not to, and a narrow input schema with validated parameters. Keep the set small and non overlapping, and return concise results and error messages the model can act on. Enforce permissions in the tool itself, never in the prompt, and require confirmation for anything destructive or irreversible.
Why interviewers ask this
Tool design decides whether an agent is reliable or chaotic, and many agent failures trace back to vague descriptions, overlapping tools or results the model cannot interpret. The interviewer wants to see that you treat the model as the consumer of an interface, validate inputs, and keep security in code. Treating write actions differently from read actions shows you have thought about what happens when the model gets it wrong.
How to structure your answer
- Describe naming, descriptions and narrow input schemas.
- Explain why a few distinct tools beat many overlapping ones.
- Cover result formats and errors the model can use.
- Put permissions and confirmation for risky actions in code.
Example answer
I treat the model as a new developer reading my API docs with nobody to ask. Each tool gets a plain name, like search orders rather than query handler, and a description saying what it does, when to use it, and when another tool is the better choice. Inputs are narrow: an order id and a status from a fixed list, not a free text query the tool has to interpret. I keep the set small, because two tools that do nearly the same thing is the quickest way to get the model choosing at random. Results come back trimmed to what the model needs, since dumping a full record wastes context. Errors are written for the model to act on, so order not found, check the id format, rather than a stack trace. Security lives in the tool, not the prompt. The tool runs with the user's permissions, so even a manipulated model cannot read another customer's data. Anything that changes state, like issuing a refund, needs explicit confirmation, and those calls are idempotent and logged.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How many tools is too many for one agent?
- How would you test that the model picks the right tool?
- What would you log for each tool call, and why?
Related ai engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions