Audit Agent Tool Definitions to Fix Routing Errors

This prompt analyzes your AI agent tool descriptions to eliminate overlap, define clear boundaries, and prevent incorrect tool routing by adding explicit anti-use guidance.

Agent prompt for Claude and ChatGPT

Prompt

Prompt
Act as an AI systems engineer specializing in agentic workflows. Your job is to audit a set of tool descriptions that are causing routing confusion. I will provide the current tool name and description for 3-5 tools. Follow these rules: 1. Identify where tool capabilities overlap or create ambiguity. 2. Rewrite each description to be mutually exclusive. 3. Add an Anti-Use section to each tool that explicitly states when the agent MUST NOT use this tool. 4. Use simple, direct language that focuses on the specific data scope of the tool. Output format: For each tool, provide: Name, Revised Description, and Anti-Use Cases. This is for technical system design; do not use hype or marketing language. Please ask me to paste the tool list now, and wait for my response.

Example output

Revised tool boundaries by order stageGetOrderStatus covers undelivered orders; ManageReturns covers delivered ones
ItemGetOrderStatusManageReturns
Order stageIn transit, not yet deliveredAlready delivered
HandlesTracking, delivery estimates, carrier statusReturn requests, prepaid labels, return status
Never use forRefunds or return labelsTracking packages in transit
Also avoidOrders already marked deliveredGeneral delivery ETAs

Example for: an e-commerce support agent with overlapping 'Order Status' and 'Returns' tools.

Tool 1: GetOrderStatus

Revised Description: Retrieves current shipment tracking, delivery estimates, and carrier status for active orders that have not yet been delivered to the customer.

Anti-Use Cases: Do not use this tool if the order has already been marked as delivered in the database. Do not use this tool to process refunds or initiate return shipping labels.

Tool 2: ManageReturns

Revised Description: Processes return requests, generates prepaid return shipping labels, and updates the return status for items that have already been delivered to the customer.

Anti-Use Cases: Do not use this tool to check the location of a package currently in transit. Do not use this tool for orders that have not yet been received by the customer. Do not use this tool to provide general delivery ETAs.

Audit Summary
  • Overlap detected: Both tools previously claimed to handle 'order updates.'
  • Resolution: I restricted GetOrderStatus to 'in-transit' data and ManageReturns to 'post-delivery' workflows.
  • Routing logic: The agent now has a clear temporal boundary (delivered vs. undelivered) to decide which tool to call.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Forces a mutually exclusive boundary based on the lifecycle of the data.
  • Includes explicit anti-use cases to prevent the model from guessing incorrectly.
  • Standardizes the description format to make it easier for the model to parse.

Use this when your LLM agent keeps selecting the wrong tool for a task or errors out due to ambiguity. Paste your tool definitions directly into ChatGPT, Claude, or Gemini after the prompt asks for them.

Common edits

  • Add a specific data schema or API endpoint reference to the description.
  • Adjust the boundary condition if your tools share a database but require different permissions.

Reuse it: Use in a workflowAdapt in the builder

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

More in Agentic AI
Agentic AIClaude

Establish an Automated LLM-as-a-Judge Rubric for Tool Calls

Create a structured 1-to-5 grading rubric to verify the accuracy, necessity, and completeness of multi-step AI tool calls.

Agentic AIClaude

Generate Adversarial Evaluation Transcripts for AI Agents

Create three distinct multi-turn conversation logs designed to test your AI agent for social engineering, tool hallucination, and silent goal drift.

Agentic AIClaude

Red Team Agent System Prompts for Injection Vulnerabilities

Assess the security of your agent system prompt against five common indirect prompt injection vectors using a structured risk analysis table.

Agentic AIClaude

Draft Input Sanitization Rules for AI Agents

Get five strict, deterministic input-sanitization rules to prevent prompt injection and data leakage before processing untrusted user inputs in an agent.

Agentic AIClaude

Should This Be an Agent? Single Agent, Workflow or Plain Script Decision

Scores a task you want to automate on variability, tool needs, error tolerance and cost, then recommends a plain script, a fixed LLM workflow, a single agent or multi-agent, with the cheapest first build.

Agentic AIClaude

Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build It

Turns an agent idea into a build-ready design: the job, the tools with their inputs and permissions, guardrails, failure handling and a set of evaluation cases to test it.