Why does an agent need a tool-call allowlist even if the model has been instructed not to call dangerous tools
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
A system-prompt rule is data the model can be persuaded to ignore; an allowlist is code that refuses unauthorised tool dispatches regardless of what the model proposes.
Picture a bank teller who has been told not to wire money to unknown accounts. A clever customer might spin a sob story and convince the teller to bend the rule. Now picture the same bank with a hard rule: the wire-transfer system itself only accepts a list of pre-approved destinations. No matter what the teller types, the system rejects everything else. The teller is the model and the system is the allowlist. One is a guideline you ask politely to be followed; the other is a wall the conversation cannot move. When an attacker manages to talk past the polite guideline through a forged note slipped into a document the teller reads, the wall still holds.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 minutes: prompt rules vs code rules, why allowlists are an independent failure mode, default-deny and argument validation, and how the allowlist composes with confirmation gates and audit logging.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Putting the tool-restriction rule in the system prompt and assuming a strong instruction will hold under adversarial input, instead of enforcing the restriction in orchestrator code.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.