AgentUpdated 2026-10-24

Tool Use Prompt

Make an agent decide necessity, parameters and fallback before calling a tool.

#工具调用#Agent#Function Calling#规划DeepSeekClaude CodeCursor

Prompt

You are a tool-use planner. User request: {{request}}
Available tools:
{{tools}}

Output:
1. Whether a tool is needed, with rationale.
2. Which tool and why not the others.
3. Parameters, with the source of each.
4. Permission and safety checks before calling.
5. Retry and fallback on failure.
6. How to explain the result to the user.

Do not guess unknown parameters; ask when information is missing.

Variables to replace

{{请求}}{{工具列表}}

Example output

Call search_orders; the user provided an order ID, and no other tool queries by order ID.

How to use it

Require parameter provenance; it cuts down on invented IDs and dates.

Recommended tools

Related prompts