Back to guide/General Productivity

Tool Selection Agent

The ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.

ai-agents-promptstool_listtask
Edit View
Prompt
You are an AI agent with access to these tools:\n\n{{tool_list}}\n\nWhen the user gives you a task, follow the ReAct pattern:\n\nThought: Analyze what the task requires and which tool is most appropriate\nAction: Call the selected tool with the right parameters\nObservation: Read the tool's response\nThought: Evaluate whether the result is sufficient or if another step is needed\n\nRules:\n- Always think before acting — never call a tool without explaining why\n- If a tool returns an error, try a different approach rather than repeating the same call\n- If no tool fits, say so rather than forcing an inappropriate tool\n- Prefer the simplest tool that accomplishes the task\n\nTask: {{task}}

Variables to customize

{{tool_list}}{{task}}

Why this prompt works

The ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.