Topic overview: online mock interviews.
- Secondary entities/queries: function calling, JSON schema, idempotency, least privilege, agent trace
Tool calling turns a language model into a system that can change the world. That is why the interview should stop at the tool boundary.
Expect questions such as: How do you write a tool description? How do you validate arguments? What happens if the tool times out after it creates a ticket? How do you prevent a prompt from widening permissions? How do you show a reviewer what the agent did?
A good answer begins with a narrow interface. The model receives a typed schema, limited values and a purpose written in plain language. The backend validates every argument. Action tools use least privilege and idempotency keys where repeated calls could duplicate work. Read tools and write tools are separate. A system can suggest a refund without having permission to issue it.
Then describe control. Put a maximum number of steps and a cost budget around the loop. Log model choice, prompt version, tool input, tool result and final response. Test tool failure, malformed arguments, stale data and adversarial instructions in retrieved text. A model may reason about a tool, but the service enforces the rules.
Practice the design with Openskill curated interviews and interview tracks. Explain a calendar-booking agent that can propose times but needs confirmation before sending an invitation. Openskill describes the live format and feedback available after the session.
Take that calendar assistant further. It may search availability and draft an invitation. It cannot send it until a person confirms guests, time zone and title. That boundary gives you material for nearly every tool-calling question.
Describe tools as small contracts. find_slots accepts participant identifiers, duration and date range, then returns available slots and source calendars. draft_invite accepts one selected slot and a title. The service checks calendar access. The model cannot add a participant because retrieved text tells it to.
Describe validation next. The backend checks required fields, allowed values and business rules before the call runs. It rejects malformed dates and IDs outside the user’s account. Write tools use an idempotency key so a retry after a network timeout does not create two events. Read and write permissions stay separate.
Practice failure questions. If a write times out after it creates an event, query the provider using the idempotency key before retrying. If availability is stale, refresh search or display uncertainty. If retrieved text says to ignore permissions, treat it as data, not authority. Authorization belongs in the service boundary.
Keep a trace with model version, prompt version, tool input, result, error and user response. Redact protected data. Put time, cost and step limits around the loop so the agent cannot keep trying forever. A trace lets a reviewer see unnecessary calls as well as final text.
Build a test table with valid arguments, missing arguments, an unauthorized user, duplicate request, timeout, stale data and adversarial retrieved instruction. State expected behavior for each row. If you cannot write it, the boundary remains vague.
The OpenAI practical guide and Anthropic agent guidance both support narrow tools and grounded results. Use them as starting points, then show local cases. In Openskill, use curated interviews and an engineering interview track to rehearse the timeout and permission follow-ups. A recovery path is more credible than a happy-path demo.
Explain the boundary before the model
In a technical interview, start with the action that could cause harm. Booking a meeting is usually reversible. Issuing a refund, deleting a record or changing a production setting may not be. Classify the action before you write the prompt. The classification decides whether the system can execute directly, prepare a draft or request approval.
That leads to a clean permission model. Give the agent a service identity with the smallest set of permissions that can complete the task. Do not pass a user’s general access token through a broad tool. Check authority at the moment the tool is called, because a conversation can run longer than a permission grant. Record the actor and action in the audit log.
Use confirmation carefully. Asking a user to confirm every read operation is annoying and makes the product unusable. Asking before a meaningful write can prevent a costly surprise. State the preview in plain language: what will change, where it will change and whether the action can be undone. Confirmation is a product decision as well as a security control.
Test the service as well as the prompt
Make the model produce an invalid request on purpose. Give it an expired identifier. Put a malicious instruction inside a retrieved document. Return a valid-looking response with a wrong account. Force a timeout after a partial write. For each, check that the service rejects, contains or reconciles the error without relying on the model to notice it.
Include observability in your answer. The team should be able to answer: which prompt and model produced this call, which tool version handled it, what authorization check passed and whether the user approved the action. If protected data cannot be stored in full, save a safe reference or hash with the minimum details needed for investigation.
If the tool fails, a user needs a clear next step, not an apology. Offer a retry only when it is safe. Otherwise, show the draft, route the request to a person or ask for the missing information. A good fallback is part of the tool design.
For practice, draw the request path on paper: user, model, validator, tool, audit record and confirmation. Point to the component that can deny a bad request. If the answer is only the prompt, redesign it. The service must be able to refuse an action even when the language model sounds certain.
Bring that diagram to a curated Openskill interview, select the relevant interview track and explain the timeout path without notes. Repeat it through Openskill after feedback. You are practising an engineering account of control, not a demo script.