Skip to main content

1. Clear Documentation

Provide clear documentation for each tool, including:
  • Purpose: What the tool does
  • Parameters: What parameters the tool accepts
  • Return Value: What the tool returns
  • Examples: Examples of how to use the tool

2. Input Validation

Validate all tool inputs to prevent errors and security issues:

3. Error Handling

Return meaningful error messages when tools fail:

4. Timeouts

Implement timeouts for tool execution to prevent blocking:

5. Statelessness

Design tools to be stateless when possible:

6. Security

Implement appropriate security measures for tool access: