Tool Servers API
The Tool Servers API allows you to manage external tool integrations that agents and assistants can use. Tool servers define collections of API endpoints that can be called as tools during AI executions.Capabilities
- CRUD Operations: Create, read, update, and delete tool servers
- Tool Management: Add, update, and remove individual tools
- Test Tool Calls: Test tool configurations before deployment
- Clone Servers: Duplicate tool server configurations
- Authentication: Support for JWT, OAuth2, Basic Auth, and custom headers
How Tool Servers Connect to Agents
Tool Servers provide external API capabilities through a layered architecture:Integration Steps
- Create Tool Server: Define your external API tools
- Assign to Tools Group: Link the tool server to a Tools Group (via dashboard)
- Configure Agent: Add the Tools Group UID to
availableToolsGroupsUids - Tools Available: The agent can now invoke tools during execution
Endpoints Summary
Tool Server Management
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/tool-servers | List all tool servers |
| GET | /api/v1/tool-servers/:id | Get tool server by ID |
| POST | /api/v1/tool-servers | Create tool server |
| PATCH | /api/v1/tool-servers/:id | Update tool server |
| DELETE | /api/v1/tool-servers/:id | Delete tool server |
| POST | /api/v1/tool-servers/:id/clone | Clone tool server |
Tool Management
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/tool-servers/:id/tools | List tools in server |
| GET | /api/v1/tool-servers/:id/tools/:name | Get specific tool |
| POST | /api/v1/tool-servers/:id/tools | Add tool to server |
| PATCH | /api/v1/tool-servers/:id/tools/:name | Update tool |
| DELETE | /api/v1/tool-servers/:id/tools/:name | Delete tool |
| POST | /api/v1/tool-servers/:id/tools/:name/test | Test tool call |
Example: Create Tool Server with Tools
Example: Add Tool to Existing Server
Example: Test Tool Call
Response
Tool Definition Schema
Parameter Handling
| Mode | Description |
|---|---|
| Path Parameters | Use ${paramName} in endpoint URL, list in pathParametersKeys |
| Query Parameters | List parameter names in queryParametersKeys |
| Body (Simple) | Specify parameter name in bodyPropertyKey |
| Body (Advanced) | Use bodyJsonTemplate with JS expression, access via params.<name> |
Response Post-Processing
When enabled, transform the response using JavaScript expressions:Authentication Configuration
JWT / Bearer Token
Basic Auth
OAuth2
Custom Headers
See Also
- Agents API - Use tools in agent executions
- API Reference - Full API documentation