Skip to content
Preptima

Agents & Tool Use interview questions

Tool calling and schema design, planning loops and step budgets, idempotency and retries, handing control back to a human, and when an agent is the wrong shape.

5 questions in RAG, Retrieval & Agents.

hard5

hardConceptDesign

Your team wants to expose internal systems to an agent through MCP servers. What does the Model Context Protocol standardise, and what does it leave you to secure?

The Model Context Protocol standardises how an AI host discovers and calls tools, reads resources and fetches prompts from servers, with OAuth-based authorisation for HTTP. It states safety principles but cannot enforce them, so per-call authorisation, tool approval and prompt injection via tool output stay your job.

5 minmid, senior, staff
hardDesignConcept

How do you design the tools an agent calls?

Give each tool one narrow purpose with a self-describing schema, return failures as structured results the model can act on rather than raising, take an idempotency key on anything that mutates, and put validation and authorisation in the executor because arguments produced by a model are untrusted input.

5 minmid, senior, staff
hardDesignScenario

How do you stop an agent from looping or running away?

Enforce step, token, wall-clock and monetary budgets in the orchestrator rather than in the prompt, detect repetition and lack of progress as separate conditions, and require an approval bound to specific arguments before any irreversible action. Exhausting a budget should hand back partial work, not vanish.

5 minmid, senior, staff
hardDesignConcept

When is an agent the wrong shape for a problem?

Whenever you can draw the flowchart. A fixed pipeline with a model at the two steps needing judgement is cheaper, testable and debuggable, and per-step error compounds across a planning loop. Reach for an agent when the tool sequence is open-ended and the environment verifies the work.

5 minmid, senior, staff, lead