buy_twilio_number
Purchase a new Twilio phone number for integration with VoiceAI-MCP-VAVicky to enable custom VoiceAI and AI chat solutions.
Instructions
Purchase a new Twilio phone number
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone_number | Yes | Phone number to purchase |
Implementation Reference
- index.js:632-636 (handler)Handler logic for the 'buy_twilio_number' tool within the executeTool method's switch statement. It configures a POST request to the backend API at /twilio/number/buy with the phone_number argument.case 'buy_twilio_number': url = `${this.baseUrl}/twilio/number/buy`; method = 'POST'; body = { phoneNumber: args.phone_number }; break;
- index.js:357-366 (registration)Tool registration in the ListToolsRequestSchema handler, defining the name, description, and input schema for 'buy_twilio_number'.{ name: 'buy_twilio_number', description: 'Purchase a new Twilio phone number', inputSchema: { type: 'object', properties: { phone_number: { type: 'string', description: 'Phone number to purchase' } }, required: ['phone_number'] }
- index.js:360-365 (schema)Input schema definition for the 'buy_twilio_number' tool, specifying the required 'phone_number' parameter.inputSchema: { type: 'object', properties: { phone_number: { type: 'string', description: 'Phone number to purchase' } }, required: ['phone_number']