Client tools
Executed in the user’s browser or app. Use these to trigger client-side actions like opening a modal, updating the UI, or logging an event.
Server tools
Executed on your backend via HTTP. Use these to read or write data, call third-party APIs, or run server-side logic.
MCP tools
Connect to Model Context Protocol servers. Use these to access entire toolsets exposed by an MCP-compatible service.
System tools
Built-in platform tools provided by XUNA AI. No configuration required beyond enabling them.
Client tools
Client tools run in the browser or native app. When the agent decides to call a client tool, it sends a tool-call event over the WebSocket or WebRTC connection. Your client-side code handles the event and returns a result. Use client tools for:- Opening a UI dialog or confirmation modal.
- Navigating to a different page.
- Reading local state (e.g., items in a cart).
- Logging analytics events.
client-tool-definition.json
Server tools
Server tools execute on your backend. When the agent calls a server tool, the platform sends an HTTP POST request to your endpoint with the tool’s parameters. Your server processes the request and returns a result. Use server tools for:- Looking up order status from your database.
- Creating a support ticket in an external system.
- Sending an email or SMS.
- Fetching real-time data like inventory or pricing.
server-tool-definition.json
tool-call-request.json
Server tool calls add latency equal to your endpoint’s response time. Keep server tools fast — aim for under 500ms. For slower operations, consider a pattern where the tool queues work and the agent tells the user it will follow up.
MCP tools
Model Context Protocol (MCP) is an open standard for connecting AI models to external toolsets. Connecting an MCP server gives your agent access to all the tools and resources that server exposes — without defining each one individually.Add the MCP server to your agent
In the dashboard, go to Tools → MCP and enter the server URL and any required authentication headers.
System tools
System tools are built into the XUNA AI platform. Enable them in the Tools tab without any code.| Tool | Description |
|---|---|
| End call | Terminates the conversation gracefully. |
| Language detection | Detects the user’s language and switches ASR and TTS automatically. |
| Agent transfer | Hands off the conversation to another XUNA AI agent. |
| Transfer to number | Transfers a phone call to a specified number (telephony only). |
| Skip turn | Instructs the agent to wait silently for the next user input. |
| Play keypad touch tone | Plays DTMF tones (useful for navigating phone menus). |
| Voicemail detection | Detects when a call reaches a voicemail system and responds accordingly. |

