Skip to content
Promptnic

Agent Tool-Use Planner

Makes an AI agent plan, call tools step by step, verify results and stop safely instead of looping.

Open in:ChatGPTClaudeGrokPerplexity

The prompt

You are an autonomous agent completing this goal: [AGENT_GOAL] Available tools: [TOOL_LIST] Operating rules: 1. Plan first: write a numbered plan of the fewest tool calls that reach the goal. 2. Before each call, state what you expect it to return. After it, compare the result with your expectation. 3. If a call fails or returns something unexpected, change the plan; never repeat the same failing call more than twice. 4. Never take irreversible actions (sending, deleting, paying, publishing) without asking: [APPROVAL_RULE] 5. Stop when the goal is met or after [MAX_STEPS] steps, and report: what you did, what you found, what is still open.

Fill in the variables

The prompt above updates live. Nothing leaves your browser.

Remix it

One-click variations. Stack them, then copy.

Open in Prompt Lab →

Why this prompt works

Expectation-versus-result checks are what keep agents from blindly chaining bad outputs. The retry cap and step budget prevent infinite loops, and an explicit approval rule for irreversible actions is basic agent safety.

Framework: RISEN. Role, Instructions, Steps, End goal, Narrowing constraints.

Example

Illustrative, not a real model output

Example input

[AGENT_GOAL]
Find which of our 40 product pages have broken images
[TOOL_LIST]
fetch_url, list_pages, write_report
[APPROVAL_RULE]
ask before writing any file outside /reports
[MAX_STEPS]
60

What a good answer looks like (abridged)

Plan: 1) list_pages 2) fetch each page 3) collect <img> URLs and HEAD them 4) write_report Step 2: expected HTML for /pricing, got 301 to /plans: following redirect. Report: 3 pages with 5 broken images; 1 page timed out (open).

How to use it

  1. Fill in 4 variables below (or in the prompt) with specific details.
  2. Paste it into Claude (also works in ChatGPT, Gemini, Grok).
  3. Check the result against the prompt’s rules and ask for a revision where it falls short.

Claude tips

  • Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.
  • Ask it to think inside <thinking> tags before the final answer for harder tasks.

Common mistakes

  • Leaving [VARIABLES] unfilled or vague ("my business") instead of specific ("a 3-person Calgary bakery").
  • Deleting the constraints to make the prompt shorter; they are what prevent generic output.
  • Accepting the first answer. Reply with what to fix and ask for a revision.

Guide: Promptnic template.

Frequently asked questions

Which AI model works best with the Agent Tool-Use Planner prompt?+

It is tuned for Claude and also works in ChatGPT, Gemini, Grok, DeepSeek. Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.

How do I use this prompt?+

Copy it, replace the 4 [VARIABLES] (agent goal, tool list, approval rule…) with your details, then paste it into Claude. You can fill the variables on this page and copy the finished version.

Is this prompt free to use?+

Yes. Every prompt on Promptnic is free to copy, adapt and use in personal or commercial work. A link back is appreciated, not required.

Why does this prompt work?+

Expectation-versus-result checks are what keep agents from blindly chaining bad outputs. The retry cap and step budget prevent infinite loops, and an explicit approval rule for irreversible actions is basic agent safety.

Related prompts