REST API tools
If your system has a REST API but no MCP server, you can still let an agent use it. Define a custom tool for each endpoint the agent needs. The agent calls it during the conversation and uses the response in its reply.
Custom tools belong to one agent. For a system with many endpoints, or one several agents share, an MCP server is usually easier to manage.
Add a custom tool
Section titled “Add a custom tool”In the agent’s Tools section, find the Custom Tools card and select Add Custom Tool.
| Field | What to enter |
|---|---|
| Tool Name | A snake_case name the model sees, such as check_order_status. |
| When Should the Agent Call This? | A clear description, for example “Call when the customer asks where their order is. Requires the order number.” The model relies on this to decide when to call the tool. |
| Endpoint | The method (GET, POST, PUT, PATCH or DELETE) and the full https URL. |
| Authentication | None, API Key, Bearer Token or Basic Auth. |
| Headers | Any fixed headers your API needs. |
| Parameters | The inputs the model fills from the conversation. |
| Say While Waiting | Voice agents only. Spoken if the API takes longer than 1 second, for example “One moment, let me check that.” |
| Timeout | 1 to 30 seconds. |
Parameters
Section titled “Parameters”Each parameter has a name, a type (String, Number, Boolean or Date), a description and a Required tick. Describe each one well: the model uses the description to work out what value to send.
Where parameters go:
- Put
{{name}}in the URL to place a value in the path or query string, for examplehttps://api.example.com/v1/orders/{{order_id}}. - Other parameters go in the JSON body for
POST,PUTandPATCH, and in the query string forGETandDELETE.
Authentication
Section titled “Authentication”- API Key. Enter the key and the API Key Header that carries it.
- Bearer Token. Sent as
Authorization: Bearer …. - Basic Auth. Enter
username:password.
Secrets are stored encrypted and never shown again after saving. When you edit a tool, leave the field as it is to keep the saved value, or type a new one to replace it. Deleting a tool deletes its stored secret too.
Test the request
Section titled “Test the request”Before you save, use Test Request at the bottom of the drawer:
- Enter sample values for the parameters.
- Select Send Test.
- Check the status code, the response time and the start of the response body.
The request is sent from NuacemOne’s servers, not your browser. Private and internal network addresses are blocked, so your API must be reachable from the internet.
Go live
Section titled “Go live”Custom tools are part of the agent’s draft. Save the draft, test the agent, then publish. Changes and deletions take effect in new conversations after you publish.
In web chat, you can choose how a tool’s results are shown, for example as cards or a receipt. Select the Results link beside the tool. See Rich messages.
Good practice
Section titled “Good practice”- Return only what the agent needs. Small, clear responses give better answers and faster replies.
- Return clear errors. A short error code or message, such as
SLOT_TAKEN, lets you tell the agent in the prompt what to do in each case. - Use a narrow credential. Give the tool a key that can call only the endpoints it needs.
- Confirm before changing data. For tools that create, change or cancel something, tell the agent in the prompt to confirm with the customer first.