Beta Feature: Tools API is in beta and actively being improved based on feedback.
What are Tools?
Tools are functions executed on the user’s device via RPC from the UpliftAI Agent. This architecture enables two types of tool integrations: Custom Tools: Functions you implement directly in your application to:- Access external APIs and services
- Perform calculations and data processing
- Interact with databases
- Execute business logic
- Connection to MCP servers
- Access to local file systems
- Integration with development environments
- Bridge to enterprise systems and databases
Tool Anatomy
Every tool consists of:Creating Tools
Basic Tool Example
Advanced Tool with Error Handling
Tool Response Format
The response is a string, but to enhance LLM response and understanding, a JSON structure like the following is recommended:Registering Tools
If you want to use tools client side, you must register their implementations.Static Registration
Register tools when creating the assistant or room:Dynamic Registration
Add or remove tools during a session:MCP (Model Context Protocol) Integration
Coming soon let us know if you want MCP integrations at founders@upliftai.org MCP tools allow your assistant to interact with MCP serversTroubleshooting
Tool not being called
Tool not being called
- Ensure tool name is unique
- Check description clearly explains when to use
- Verify parameters schema is valid JSON Schema
- Test with explicit prompts mentioning the tool
- Ensure the configuration and registered name match
Tool timing out
Tool timing out
- Increase timeout value
- Optimize handler performance
- Implement caching for repeated calls
- Consider async processing for long operations
Handler errors
Handler errors
- Always wrap in try-catch
- Return valid JSON even on error
- Log errors for debugging
- Test handler independently
Parameters not received
Parameters not received
- Check payload parsing
- Verify parameter names match schema
- Use raw_arguments for access
- Validate required fields
Support
Support
Just reach out to us at founders@upliftai.org, we will love to figure out how to improve the experience.
