Answer A Number From Your Own Twilio Account
attach_own_twilio_numberHave a voice agent answer calls on ONE number from the business's own connected Twilio account, calls only. Reads only that number. dry_run defaults to true and changes nothing: it returns would_change (the number's VoiceUrl and VoiceMethod) and the fields left unchanged. With dry_run false, only that number's VoiceUrl and VoiceMethod change; its text settings (SmsUrl, SmsMethod, SmsApplicationSid, StatusCallback) are read back afterwards and must be unchanged, so a texting setup another service runs on the account keeps working. Refuses a number a Twilio app answers, and a number another service answers unless replace_existing_voice is true. Uses one plan line. Requires admin role.
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": {
"phone_number": "<phone_number>",
"agent_id": "<agent_id>"
},
"name": "attach_own_twilio_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Default true: report what would change and write nothing. | |
| agent_id | Yes | Agent that should answer the calls. | |
| business_id | No | Business ID (optional only when the token can access exactly one business). | |
| phone_number | Yes | E.164 number on the business's own connected Twilio account. | |
| replace_existing_voice | No | Allow replacing another service that answers calls on this number today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| error | No | Present when success is false | |
| before | No | ||
| dry_run | No | ||
| success | Yes | Whether the tool completed successfully | |
| unchanged | No | ||
| business_id | No | ||
| would_change | No |