Overview
Custom Tools allows you to create custom HTTP tools to integrate any external API with your agents. This functionality offers maximum flexibility to:- Integrate third-party REST APIs
- Create domain-specific tools
- Configure custom authentication
- Define dynamic parameters and validations
- Manage errors and timeouts robustly
HTTP Tools: Unlike MCP servers, here you configure direct HTTP calls to REST APIs.
Ideal for simple and specific integrations.
How to Configure Custom Tools
The Custom Tools configuration process has been divided into two main steps:- Register the Custom Tool in the settings menu
- Select the Custom Tool in the agent settings
Part 1: Register Custom Tool
Access settings menu
Access settings menu
Basic tool information
Basic tool information
Configure the fundamental information of your tool:Name:
- Tool identifier name
- Used to reference the tool
- Example:
search_user
,send_email
,check_inventory
- Clear description of what the tool does
- Helps you and other users understand the functionality
- Example: “Searches detailed user information by ID”
Use descriptive names and clear descriptions to facilitate later selection in agents.
Endpoint configuration
Endpoint configuration
Configure your tool’s HTTP endpoint:Method (HTTP Method):
GET
- To fetch dataPOST
- To create new resourcesPUT
- To update complete resourcesPATCH
- For partial updatesDELETE
- To remove resources
- Complete API URL that will be called
- Can include dynamic variables using
{variable}
- Example:
https://api.example.com/users/{userId}/profile
Authentication headers
Authentication headers
Configure headers necessary for authentication:Common headers:
Authentication headers are stored encrypted on the platform.
Configure parameters
Configure parameters
Configure all necessary parameters:Body Parameters (for POST/PUT/PATCH):
- Name, type, description and whether it’s required
- Example:
name
(string, required),email
(string, required)
- Variables that are part of the URL
- Example:
{userId}
in/users/{userId}
- Query parameters in the URL
- Example:
?limit=10&offset=0
- Default values for any parameter
- Used when the parameter is not provided
Error handling
Error handling
Configure how to handle errors:
- Timeout: Time limit in seconds (recommended: 10-30)
- Fallback Error Code: Default error code
- Fallback Error Message: User-friendly message for errors
Configure appropriate timeouts to avoid freezing on slow APIs.
Save Custom Tool
Save Custom Tool
- Review all configurations carefully
- Test the configuration if there’s a test option
- Click “Save”
- The Custom Tool will be available in your library
After saving, the Custom Tool will be available to be selected in any agent.
Part 2: Select Custom Tool in Agent
Access agent settings
Access agent settings
- Go to the agents screen in the dashboard
- Locate the agent you want to configure
- Click on the “Settings” icon (⚙️) on the agent card and then on “Edit”
- You will be directed to the agent settings screen
Add Custom Tool to agent
Add Custom Tool to agent
- In the agent settings screen, locate the “Custom Tools” section
- Click “Add” to add a Custom Tool
- A list of registered Custom Tools will be displayed
- Select the tools that this agent should use
- Click “Save” to apply
You can select multiple Custom Tools for the same agent. Each agent can have a different set of tools.
Verify configuration
Verify configuration
After saving:
- Selected Custom Tools will appear in the agent’s list
- The agent will be able to use these tools during conversations
- You can add/remove tools at any time
Test the agent in a conversation to verify that the Custom Tools are working correctly.
Advantages of the New System
Tool reusability
Tool reusability
Benefits:
- 🔄 Reuse the same Custom Tool across multiple agents
- 🎯 Specialize agents with specific tools
- 🛠️ Maintain centralized configurations
- 📊 Manage all tools in one place
Team collaboration
Team collaboration
Facilitates teamwork:
- 👥 Share Custom Tools among team members
- 📚 Centralized library of organizational tools
- 🔧 Simplified maintenance of integrations
- 📈 Tool evolution without impact on agents
Practical Examples
ZIP Code Search Tool
ZIP code query API
ZIP code query API
Complete configuration (in Custom Tools registration):Usage in agent:
- Access agent settings
- Go to Custom Tools
- Select “search_zipcode” from the list
- Save the configuration
Email Sending Tool
Email sending API
Email sending API
Complete configuration (in Custom Tools registration):Usage in agent:
- Tool registered centrally
- Selected in agent settings
- Available for immediate use
Product Search Tool
E-commerce API
E-commerce API
Complete configuration (in Custom Tools registration):Usage in agent:
- Configure once in Custom Tools menu
- Reuse in as many agents as needed
- Centralized and simplified maintenance
Best Practices
Security and Authentication
Security practices
Security practices
Important recommendations:
- 🔐 Use HTTPS whenever possible
- 🔑 Store API keys in headers, not in the URL
- ⏱️ Configure adequate timeouts (10-30 seconds)
- 🛡️ Validate required parameters
- 📝 Document each parameter well
Performance and Reliability
Performance optimization
Performance optimization
Optimization strategies:
- ⚡ Appropriate timeouts - Not too long nor too short
- 🎯 Specific parameters - Avoid fetching unnecessary data
- 💰 Consider costs - APIs may have usage limits
- 🔄 Implement retry when appropriate
- 📊 Monitor performance of calls
Configure timeouts between 10-30 seconds depending on API complexity.
Troubleshooting
Common problems
Common problems
Authentication error (401/403):
- Check if the API key is correct
- Confirm the Authorization header format
- Test the API directly first
- Check if the key hasn’t expired
- Increase the timeout value
- Check if the API is responding
- Consider optimizing query parameters
- Test API speed externally
- Check the syntax of variables
{name}
- Confirm names match exactly
- Test with fixed values first
- Validate the format expected by the API
- Check if the API returns valid JSON
- Confirm appropriate Accept headers
- Test the API response directly
- Check external API documentation
🔧 Custom Tool configured! Now you can integrate any REST API with your agents with complete configuration of parameters, authentication, and error handling!