Designing good tools for agents

An agent chooses tools by reading their names and descriptions, so tool design matters as much as the prompt. Good tools are clearly named, accept strictly defined inputs, and return helpful errors the agent can learn from.

Everyday analogy

Labelling switches in a new office: "Switch 3" confuses everyone; "Conference room lights" doesn't.

Example

A vague tool called process(data) confuses the agent. A clear tool called get_order_status(order_id), described as "Returns the delivery status for one order ID like ORD-1234", is used correctly.

❌Unclear tool• name: do_stuff• "handles data"• Agent can't tell when to use it✅Clear tool• name: get_order_status• "Returns status for an order ID"• Inputs: order_id (text)VS
Agents choose tools by reading their names and descriptions.
  1. Clear names and descriptions the model can understand.
  2. Strict input schemas with validation (types, required fields, allowed values).
  3. Helpful error messages that tell the agent how to fix the call.
  4. Fewer, better tools: many overlapping tools confuse the agent.

Try it yourself

About 10 min

Rewrite a bad tool description

  1. Take this tool: name: do_stuff, description: handles data.
  2. Rewrite it with a clear name, what it does, when to use it, and what inputs it needs.
  3. Ask an AI chatbot which version it would understand better.

What you should see: Agents choose tools by reading descriptions, so clarity matters.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectBuild an AI workflow that summarises feedback for youAbout 75 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.