Security

Your agent exposes a tool that issues refunds.

Any user chatting with the agent could try to trigger it.

  1. ATrust the agent to only refund when it is appropriate.
  2. BAdd a prompt rule: only refund verified customers.
  3. CEnforce the caller’s permissions inside the tool before it acts.
  4. DLog every refund and audit them weekly.

Answer: C

Enforce the caller’s permissions inside the tool before it acts.

Why

Authorization must be checked by the tool against the real caller’s identity - never assumed by the model, which can be talked into calling almost anything.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path