Tool-Use Rules and Boundaries for an Agent

Define which tools an agent may use, what it may never do and when it must ask first.

agenttoolssafety All models

Prompt

Prompt
Follow these rules whenever you use tools during this task.

<tools>
You have access to: {tools_available}
Use a tool only when it helps the task. Do not call a tool just to look busy.
</tools>

<allowed_without_asking>
{allowed_actions}
</allowed_without_asking>

<never_do>
{forbidden_actions}
If a task seems to require one of these, stop and tell me.
</never_do>

<ask_first>
{approval_required}
When you ask, state the action, the reason and what could go wrong. Then wait for my answer.
</ask_first>

<data_handling>
{data_sensitivity}
</data_handling>

<budget>
{call_limit}
If you reach the limit before the task is done, stop, summarize what is finished and what remains, and ask how to proceed.
</budget>

<when_a_tool_fails>
Try once more with a changed approach. If it still fails, report the error in plain words and suggest an alternative. Do not invent results to cover a failure.
</when_a_tool_fails>

For every important result, say which tool or source it came from.

Variables

VariableWhat to put inExample
{tools_available}The tools or capabilities the agent has.Web search, a file reader and a spreadsheet editor.
{allowed_actions}What the agent may do without asking.Read files, search the web, create new drafts.
{forbidden_actions}What the agent must never do.Delete or overwrite files, send messages, make purchases.
{approval_required}Actions that need your explicit yes.Editing an existing file, anything that touches customer data.
{data_sensitivity}How to treat private or sensitive data.Customer names and emails are private: never copy them into outputs.
{call_limit}A budget for tool calls or steps.No more than 25 tool calls for this task.

How to use

  1. Fill in the variables so they describe your real tools and risks. Be concrete about what counts as irreversible.
  2. Paste this block before the task description, or place it in the system prompt of your agent.
  3. Run a small task first and check that the agent asks before the actions you listed.

Example result

Illustrative example

Before I edit "pricing-2025.xlsx" I need your approval. Action: change the discount column for 12 rows. Reason: the brief asks for updated prices. Risk: the original values are overwritten; I suggest I save a copy first. Shall I proceed with a copy?

Model notes

Claude

Claude tends to respect explicit boundaries when they are stated once, clearly and in their own section. Keep the never-do list short and specific.

ChatGPT

Pair it with the task brief. For repeated use, keep these rules in custom instructions or a project so they apply to every task.

Gemini

State which actions apply to which files or documents by name, so the rules are not ambiguous when several attachments are present.

Grok

Add a rule for sources: ask it to name where each current fact came from, and to separate verified facts from commentary.

Refine the result

  • Prompt
    Turn the ask-first rules into a checklist I can approve item by item.
  • Prompt
    List every action you took with a tool, in order, and mark which ones needed approval.
  • Prompt
    Which of my rules were unclear or in conflict? Suggest a cleaner version.

Related templates

  • Agent Task Brief

    Give an AI agent a clear goal, boundaries and a checkable definition of done.

    agenttask briefplanning All models
  • Self-Check Before Delivery

    Make the AI check its own work against your requirements before it hands anything back.

    qualityverificationagent All models

Related guide