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.
- Clear names and descriptions the model can understand.
- Strict input schemas with validation (types, required fields, allowed values).
- Helpful error messages that tell the agent how to fix the call.
- Fewer, better tools: many overlapping tools confuse the agent.
Try it yourself
About 10 minRewrite a bad tool description
- Take this tool: name: do_stuff, description: handles data.
- Rewrite it with a clear name, what it does, when to use it, and what inputs it needs.
- 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.