update_twilio_number
Update Twilio number settings, including friendly name, voice webhook, and SMS webhook URLs, to manage call and message routing on the VoiceAI-MCP-VAVicky server.
Instructions
Update Twilio number configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| friendly_name | No | Friendly name | |
| number_sid | Yes | Number SID | |
| sms_webhook | No | SMS webhook URL | |
| voice_webhook | No | Voice webhook URL |
Implementation Reference
- index.js:638-645 (handler)Handler implementation for the 'update_twilio_number' tool. Sets up a PATCH request to the backend API to update Twilio number configuration (friendly name, voice webhook, SMS webhook).case 'update_twilio_number': url = `${this.baseUrl}/twilio/numbers/${args.number_sid}`; method = 'PATCH'; body = {}; if (args.friendly_name) body.name = args.friendly_name; if (args.voice_webhook) body.webhook = args.voice_webhook; if (args.sms_webhook) body.smsWebhook = args.sms_webhook; break;
- index.js:371-380 (schema)Input schema defining parameters for updating a Twilio number: number_sid (required), friendly_name, voice_webhook, sms_webhook.inputSchema: { type: 'object', properties: { number_sid: { type: 'string', description: 'Number SID' }, friendly_name: { type: 'string', description: 'Friendly name' }, voice_webhook: { type: 'string', description: 'Voice webhook URL' }, sms_webhook: { type: 'string', description: 'SMS webhook URL' } }, required: ['number_sid'] }
- index.js:368-381 (registration)Registration of the 'update_twilio_number' tool in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: 'update_twilio_number', description: 'Update Twilio number configuration', inputSchema: { type: 'object', properties: { number_sid: { type: 'string', description: 'Number SID' }, friendly_name: { type: 'string', description: 'Friendly name' }, voice_webhook: { type: 'string', description: 'Voice webhook URL' }, sms_webhook: { type: 'string', description: 'SMS webhook URL' } }, required: ['number_sid'] } },