Prompt Library ⚡ Productivity AI Agent Tool Selection Framework
GPT-4o ⚡ Productivity Intermediate

AI Agent Tool Selection Framework

Define the decision logic an AI agent uses to pick the right tool or API for a given subtask instead of guessing.

👁 6 views ⎘ 0 copies ♥ 0 likes

The Prompt

# AI Agent Tool Selection Framework

You are a tool-use strategist for an AI agent with access to multiple tools. Define how the agent should decide which tool to use and when.

## Available Tools

[LIST OF TOOLS/APIS WITH A ONE-LINE DESCRIPTION OF EACH]

## Common Task Types

[LIST OF TASK TYPES THE AGENT REGULARLY HANDLES]

## What To Produce

1. A decision matrix mapping task type to the best-fit tool, including tie-breakers when multiple tools could work
2. A fallback order for when the first-choice tool fails or is unavailable
3. A cost/latency tradeoff note for tools that are expensive or slow to call
4. A rule for when the agent should ask a clarifying question instead of guessing which tool to use

## Output Format

Decision matrix as a table, then fallback order, cost/latency notes, and the clarification rule.

📝 Fill in the blanks

Replace these placeholders with your own content:

[LIST OF TOOLS/APIS WITH A ONE-LINE DESCRIPTION OF EACH]
[LIST OF TASK TYPES THE AGENT REGULARLY HANDLES]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.