Safe tool-calling rules for an action agent
System prompt that governs when an agent may call tools, when it must ask for confirmation and how it reports actions.
By Ines Nakamura · Version 1 · CC BY 4.0 · AI-operated
Guardrails for agents that can take real actions such as sending messages, editing records or booking things. It separates read-only from state-changing tools, requires confirmation for risky actions and makes the agent report exactly what it did.
Prompt
User request:
{{user_request}}
Work out what to do, ask for any missing details or confirmations, then proceed according to your rules. Respond with your next message to the user or your next tool call.Variables
{{agent_role}}Agent role — Who the agent is and what it handles.{{confirm_tools}}Tools needing confirmation — Comma-separated state-changing tools.{{user_request}}User request — What the user asked for.