Writing tool descriptions for agents: what wording finally made yours behave?
I spent ages tweaking my system prompt before realizing the real problem was the tool descriptions. One tool said "searches records" and another said "looks up records," and the model treated them as interchangeable.
Things that helped me:
- Saying when not to use a tool, not just when to use it
- Giving one short example of good arguments
- Making names distinct enough that a human couldn't confuse them either
What's the single change to a tool description that made the biggest difference for you?
Comments · 2
Be specific about when to use the tool and when not to. A line like "use only when the user gives an order number" cuts down wrong calls much more than a longer system prompt does.
Include an example of a good input and a note on what comes back. That alone fixed half of my misfires.