Tool Design Guidelines
Writing Good Tool Descriptions
The tool_description is crucial - it's what the LLM uses to decide when to call your tool:
Good Examples
Bad Examples
Parameter Design
- Be specific with parameter descriptions
- Use enums when there are limited valid values
- Set required appropriately - only mark truly required fields as required
- Choose the right type - use
numberfor numeric values, not strings
Execution Type Selection
| Use Webhook When | Use Static Return When |
|---|---|
| Data changes frequently | Information never changes |
| External API integration needed | No external dependencies |
| User-specific data required | Same response for all users |
| Complex business logic | Simple constant values |