Skip to main content
Tools are the superpowers that make AI agents truly useful. While language models are great at understanding and generating text, tools allow agents to take real actions in the world - like searching the web, calling APIs, accessing databases, or running calculations.

What are Tools? (Simple Explanation)

Think of tools as apps that your AI agent can use. Just like you might use a calculator app, weather app, or email app on your phone, AI agents can use tools to:
  • Get Information: Search the web, query databases, read files
  • Perform Actions: Send emails, create calendar events, make API calls
  • Process Data: Run calculations, analyze spreadsheets, generate reports
  • Interact with Services: Book appointments, place orders, update records

Before and After Tools

Without Tools:
With Weather Tool:

How Tools Work

For Business Users

Types of Tools

Information Tools

Web search, database queries, document retrieval

Communication Tools

Email, Slack, SMS, notifications

Productivity Tools

Calendar management, task creation, file operations

Business Tools

CRM updates, inventory management, analytics

Business Use Cases

Customer Support Agent Tools

Sales Assistant Tools

Benefits for Your Business

  • πŸš€ Increased Efficiency: Agents handle complex tasks automatically
  • πŸ“Š Better Data Access: Real-time information from your systems
  • πŸ”— System Integration: Connect all your business tools
  • ⚑ Faster Response Times: Instant access to information and actions
  • πŸ“ˆ Scalability: Handle more requests without hiring more staff

For Developers

Tool Architecture

Tool Schema Definition

Tools are defined using JSON Schema to specify their interface:

Creating Custom Tools

Simple HTTP API Tool

Database Query Tool

File Processing Tool

Tool Registration and Management

Error Handling and Validation

Tool Categories

Built-in Tools

Definable.ai provides several built-in tools out of the box:

Web Search

Search the internet for current information

Calculator

Perform mathematical calculations and conversions

Code Executor

Run Python, JavaScript, and other code snippets

File Reader

Read and process various file formats

Integration Tools

Connect with popular services and platforms:
  • CRM Integration: Salesforce, HubSpot, Pipedrive
  • Communication: Slack, Microsoft Teams, Discord
  • Productivity: Google Workspace, Microsoft 365
  • E-commerce: Shopify, WooCommerce, Amazon
  • Analytics: Google Analytics, Mixpanel
  • Databases: PostgreSQL, MySQL, MongoDB

Custom Tools

Build tools specific to your business needs:
  • Internal APIs: Connect to your company’s systems
  • Proprietary Data: Access your unique data sources
  • Business Logic: Implement your specific workflows
  • Third-party Services: Integrate with specialized tools

Best Practices

Tool Design

  1. Single Responsibility: Each tool should do one thing well
  2. Clear Documentation: Provide detailed descriptions and examples
  3. Error Handling: Implement robust error handling and recovery
  4. Parameter Validation: Validate inputs before processing

Security

  1. Authentication: Secure access to sensitive tools
  2. Authorization: Control which agents can use which tools
  3. Input Sanitization: Validate and sanitize all inputs
  4. Audit Logging: Track tool usage and results

Performance

  1. Caching: Cache results when appropriate
  2. Timeouts: Set reasonable timeout limits
  3. Rate Limiting: Prevent abuse and overuse
  4. Async Processing: Use async operations for I/O operations

Testing

  1. Unit Tests: Test each tool function individually
  2. Integration Tests: Test tool interactions with external services
  3. Error Scenarios: Test failure cases and error handling
  4. Performance Tests: Ensure tools perform within acceptable limits

Troubleshooting

Common Issues

Issue: Tool returns incorrect results Solutions:
  • Validate input parameters
  • Check API documentation for changes
  • Add more comprehensive error handling
  • Test with different input combinations
Issue: Tool is too slow Solutions:
  • Implement caching for repeated requests
  • Use async operations where possible
  • Optimize database queries
  • Consider pagination for large datasets
Issue: Tool fails intermittently Solutions:
  • Add retry logic with exponential backoff
  • Implement circuit breaker pattern
  • Check network connectivity and timeouts
  • Monitor external service status

Next Steps

Now that you understand Tools, explore how they integrate with other concepts: Ready to create your first tool? Check out the Tools API Reference or start with our Getting Started Guide.