The model reads your tool descriptions to decide when and how to use each tool. Well-crafted descriptions dramatically improve tool selection accuracy.
Best Practices
- Be specific: "Get current weather conditions including temperature, humidity, and forecast for a given city" is better than "Get weather".
- Include examples: Add examples in the description — "e.g., 'London, UK' or 'New York, US'".
- State constraints: "Only works for US cities" or "Returns data for the last 30 days only".
- Describe parameters: Each parameter should have a clear description field.
- Use enums: Constrain values where possible —
"enum": ["celsius", "fahrenheit"].