Skip to main content
Custom tools let you connect your agent to any system not covered by a pre-built integration. TruGen supports three types of custom tools — choose based on where the action happens and how your system communicates.

API & Webhook

Call any external HTTP endpoint during a conversation. The agent uses function calling to decide when the tool is relevant, fires the request, and incorporates the response into its reply.

Configuration

Example

Write your Description as if you’re telling a smart colleague exactly when to pick up this tool. Specificity matters — vague descriptions lead to missed or incorrect invocations.

MCP

Connect your own Model Context Protocol server to give the agent access to tools via a standardised interface. Use this if you already run an MCP-compatible server or want a protocol-native integration.

Configuration

Transport Types

Your MCP server must be publicly reachable from TruGen’s infrastructure. If it’s behind a private network, expose it via a secure tunnel or deploy it to a public endpoint first.

Client Tools

Client tools execute inside your frontend application at runtime — not on a server. Use them to trigger UI actions during a conversation, such as opening a modal, navigating to a page, or updating an on-screen element. Client tools are defined in the Developer Studio and implemented as matching handlers in your npm package integration.

Configuration

Implementing the Handler

After defining a client tool in the studio, implement the matching handler in your npm package:
The tool name defined in the studio must exactly match the event name used in your handler — including casing.

Testing a Client Tool

Use the Test button in the Developer Studio to fire the tool with sample inputs and verify the handler receives and processes them correctly before going live.

What’s Next?

Integrations

Connect 1,000+ apps via Composio without writing API code.

Event Callbacks

Receive real-time webhook events from active conversations.