Skip to main content
Glama
AiAgency-Now

VoiceAI-MCP-VAVicky

Official
by AiAgency-Now

update_twilio_number

Modify Twilio phone number settings including friendly name, voice webhook, and SMS webhook URLs for custom VoiceAI integrations.

Instructions

Update Twilio number configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
number_sidYesNumber SID
friendly_nameNoFriendly name
voice_webhookNoVoice webhook URL
sms_webhookNoSMS webhook URL

Implementation Reference

  • Switch case in executeTool method implementing the tool logic: sets up a PATCH request to update Twilio number configuration via backend API.
    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;
  • Input schema definition for the update_twilio_number tool, specifying parameters and requirements.
    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)
    Tool object in the listTools response registering the update_twilio_number tool with its name, description, and 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']
      }
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AiAgency-Now/MCP-VoiceAI-WhiteLabel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server