Route a number to an agent
route_numberSet the saved agents that answer a number's calls and texts.
Omitted settings retain their current values. Returns the updated number record or an error.
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": {
"number_id": "<number_id>"
},
"name": "route_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear_sms | No | ``true`` removes the agent that answers texts. | |
| llm_model | No | Model ID of the calling agent. Optional. Recorded for analytics only. | |
| number_id | Yes | Workspace phone number ID, from ``list_numbers`` or ``acquire_number``. | |
| clear_voice | No | ``true`` removes the agent that answers calls. | |
| sms_agent_id | No | Agent that answers incoming texts, from ``list_agents`` or ``create_agent``. | |
| voice_agent_id | No | Agent that answers incoming calls, from ``list_agents`` or ``create_agent``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||