AI Agent Tool Description Engineering 2026

🤖 Agents 2026-07-16 · Updated 2026-11-09 3 min read

An agent with ten tools keeps picking the wrong one. It is rarely model stupidity: the descriptions overlap and the model has to guess. Seven fixes, each with a description template you can copy, plus a 30-case evaluation set.

📜 Table of Contents

📖 Keep reading

Tool Description Engineering: Getting the Agent to Pick Right the First Time

When two tool descriptions both plausibly match a user's sentence, the model guesses. Adding "choose carefully" to the system prompt does not fix that. Tool descriptions are part of the code, not comments.

1. One tool, one job

Split search_everything into search_orders, search_products, search_faq. If a description contains "or also", it is time to split.

2. Describe when to use it, not what it is

Enumerate the user's phrasing.

Weak Better
Search the database Use for order status, shipping progress, refund status. Triggers: order number, tracking number, ship date
Handle payments Use for refunds, refund status, changing payment method. Not for placing orders or coupons

3. Say when not to use it, and name the alternative

get_order_status(order_id)
Use when: the user gives a specific order id and asks where it is.
Do not use:
  - no order id given -> list_recent_orders first
  - stock question -> check_stock
  - policy question -> search_faq

Always name the replacement tool. "Use another suitable tool" is worthless.

4. Constrain parameters with schema

{"name": "get_order_status",
 "parameters": {"type": "object",
  "properties": {"order_id": {"type": "string", "pattern": "^[0-9]{12}$",
    "description": "12-digit order id; strip spaces or NO. prefix first"}},
  "required": ["order_id"]}}

Enums and patterns also give you local validation before the call.

5. Make returns predictable

Fixed fields, explicit units, ISO timestamps, and items_returned / items_total so the model knows when a list was truncated.

6. Use business words, not internal abbreviations

get_order_status, not qry_ord_st_v2. amount, not amt.

7. Build a 30-case evaluation set

Field Example
query where are the shoes I bought last week
expected tool get_order_status
expected args order_id resolved from context
result pass / wrong tool / missing arg

Run it after every description change, new tool, or model swap. Thirty cases covering the confusable pairs is enough.

Combined effect

Change Effect Effort
Split overlapping tools large drop in mis-selection medium
Add exclusions and alternatives best return per line small
Schema enums and patterns fewer bad arguments small
Fixed return shape better multi-step success medium
Evaluation set makes the rest measurable small-medium

Exact numbers depend on how bad the original descriptions were. Do not trust percentage promises; run your own set.

FAQ

How long should a description be? 50-150 characters or the equivalent: scenario, exclusions, parameter format.

Chinese or English? Match the user's language for descriptions; keep names in English snake_case.

More than twenty tools? Group them and load only the relevant set per scenario. Too many tools degrade selection regardless of wording.

Still mis-selecting? Check the trace: tool list may be truncated in context, or required args missing.

Field-level requirements vary by provider; check each API's documentation.

Related

Related Articles
2026-08-31
Spent a week doing dirty work with Doubao Seed Evolving: A hands-on report from a veteran Agent user
2026-08-12
Agentic AI Evaluation Tools 2026: Testing Multi-Step Agents That Act on Your Behalf
2026-07-17
AI Agent Backup Restore 2026
2026-07-17
AI Agent Binary Search Debug 2026
2026-08-11
Self-Hosted AI Agent Stack 2026: Open WebUI, Dify and LangGraph Compared
2026-07-16
AI Agent Multi Turn Conversation 2026

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.

💬 Comments (0)

No comments yet. Be the first!

Login to comment