Agents, Tool Use & MCP·Question 62 of 90Advanced

You're exposing one of your agents to another company's agent. What crosses the boundary, and what do you refuse to expose?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

What crosses is deliberately thin: an Agent Card declaring identity, skills, endpoint and authentication requirements, tasks in, typed artifacts and status events out. Nothing else.

Full worked answer

What crosses is deliberately thin: an Agent Card declaring identity, skills, endpoint and authentication requirements, tasks in, typed artifacts and status events out. Nothing else.

What never crosses: the system prompt, the tool manifest, tool-call arguments, raw trajectories, reasoning traces, the memory store, internal IDs that leak your schema, and anything belonging to another customer. Opacity here is a security control, not tidy design. Every internal detail you publish is reconnaissance for someone shaping your agent's behaviour.

Authentication and authorisation are separate problems. Authentication is declared in the card and should be server-to-server: OAuth 2.0 client credentials or mutual TLS, credentials issued per peer, never a shared token. Authorisation is the harder half, because the peer authenticates as a company while acting for one of its end users. You want dual-principal identity on every task - which peer, acting for which subject, with which scopes - and per-peer capability downscoping, so peer X can invoke skill A and not skill B, only for the tenants it is entitled to.

Treat the peer's output as untrusted content. It is the same channel as injection via tool results (Q40). A real counterparty with a real contract does not make their agent trustworthy: their agent reads web pages and tickets and can be injected. Carry the taint across the hop, never let a peer's artifact select your tools or reach a sink unreviewed, and never let a returned artifact be read as instructions.

Cost and rate control, because denial of wallet is the likely incident. A peer that loops, or two agents that call each other, burns your inference budget quietly and legitimately. Per-peer quotas and concurrency caps, a per-task token and wall-clock budget, task depth limits so delegation cannot recurse, and a circuit breaker you can trip per peer without a deploy.

Audit that resolves across the boundary. Log peer identity, the end-user principal, task ID, artifacts in and out, and a correlation ID both sides can quote during an incident. A shared service account destroys exactly the attribution you need when something goes wrong.

Going further: follow-up territory

The half that senior candidates raise unprompted: what you are contractually allowed to retain of their data, what your model does with it, how a peer revokes a key, and who is on the hook when the composite answer is wrong.

What a good answer covers

  • What crosses is deliberately thin
  • What never crosses: the system prompt, the tool manifest, tool-call arguments, raw trajectories,…
  • Opacity here is a security control, not tidy design
  • Every internal detail you publish is reconnaissance for someone shaping your agent's behaviour
  • Authentication and authorisation are separate problems

Interviewer follow-ups to expect

  1. The peer returns an artifact that is subtly wrong and your agent acts on it. Who is accountable, and what would have caught it?

  2. How would you rate-limit a peer whose legitimate traffic is genuinely spiky?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep