Set who answers a number (number rules)
update_number_rulesSet who answers calls to this phone number (its Number rules), the same as Save routing under "When someone calls this number" in the workspace. Send incoming.when_called with what that choice needs: answer_with_skysay_agent and agent_id, an AI agent in the number's workspace and project; send_to_my_phone_server and phone_server_id, a verified phone server of the workspace; forward_to_phone_number and phone_number, the E.164 number calls are forwarded to; or disabled, so calls are not answered. The same tool sets outgoing (caller ID use, allowed agents and countries, concurrent calls) and recording. A field you leave out keeps its saved value. Needs numbers:write. list_numbers shows each number's when_called; get_number_rules reads one number's rules.
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": "update_number_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incoming | No | Who answers calls to this number. | |
| outgoing | No | How the number may be used for outgoing calls. | |
| number_id | Yes | ||
| recording | No | Recording rules: enabled, consent_state, retention_days. |