Create an agent tool
create_toolCreate a webhook tool the agent calls during a call to your API. label is a readable name ("Check order"), the model's name for it is derived from it automatically. description is the ONLY thing the model uses to decide WHEN to use the tool - write it as an instruction ("Use when the caller asks where their order is."), 10 to 1000 characters. url must be https and must not point into an internal network. method is GET (parameters go in the query string) or POST (parameters go in the JSON body). headers is a map of headers (typically Authorization), at most 5; the headers host, content-length, x-conversation-id and x-caller-id can't be set. params is an array of objects {name, type, source, description, constantValue, required}, at most 10: source "llm" means the model extracts the value from the call (then fill in description, and required if needed), "caller_number" fills in the caller's number and "called_number" the called number (both E.164, the model never sees either), "constant" sends a fixed value from constantValue. timeoutSecs is how long we give your API to respond - an integer from 5 to 30 seconds, default 20 (a longer limit means the caller hears silence). requireConfirmation (default false) is for tools that send or create something (an SMS, a request): the volai engine then runs the tool only when the caller's last reply clearly says yes; otherwise the tool does not run and the agent asks again, and an end_call in the same round is held back. It works only for agents on the volai engine whose language is cs or sk (the engine knows consent words in Czech and Slovak only) and is ignored for every other agent; saving the tool is never refused because of an agent's language. An account can have at most 10 tools. Creating a tool doesn't change any agent by itself - attach it via toolIds in update_agent. Same data as POST /v1/tools (response schema in /openapi.json).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>",
"description": "<description>",
"url": "<url>",
"method": "<method>"
},
"name": "create_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Address the agent calls, must be https and must not point into an internal network. | |
| label | Yes | Readable name for the tool, shown in the portal; the model's name for it is derived from it automatically, 1 to 60 characters. | |
| method | Yes | HTTP method the agent uses: GET (parameters go in the query string) or POST (parameters go in the JSON body). | |
| params | No | Parameters the tool sends with the call, at most 10. | |
| headers | No | Header name to value sent with every call, typically Authorization, at most 5. The headers host, content-length, x-conversation-id and x-caller-id cannot be set. | |
| description | Yes | The only thing the model uses to decide when to call the tool, written as an instruction, 10 to 1000 characters. | |
| timeoutSecs | No | How long we give your API to respond, in seconds, 5 to 30. Defaults to 20; a longer limit means the caller hears silence. | |
| requireConfirmation | No | For tools that send or create something: the volai engine runs the tool only when the caller's last reply clearly says yes. Works for engine agents in Czech or Slovak only. Defaults to false. |