make_call
Initiate phone calls via VoiceAI-MCP-VAVicky by specifying an assistant ID and phone number. Supports optional contact ID integration for streamlined communication.
Instructions
Make a phone call through assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| contact_id | No | Contact ID (optional) | |
| phone_number | Yes | Phone number to call |
Implementation Reference
- index.js:656-666 (handler)Executes the make_call tool by constructing a POST request to initiate a phone call via the Twilio endpoint for the specified assistant, including phone number and optional contact ID.case 'make_call': url = `${this.baseUrl}/twilio/${args.assistant_id}/call`; method = 'POST'; body = { phonenumber: args.phone_number }; if (args.contact_id) { body.contact_id = args.contact_id; body.customData = { phonenumber: args.phone_number }; } break;
- index.js:396-408 (registration)Registers the make_call tool in the ListTools response, defining its name, description, and input schema.{ name: 'make_call', description: 'Make a phone call through assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, phone_number: { type: 'string', description: 'Phone number to call' }, contact_id: { type: 'string', description: 'Contact ID (optional)' } }, required: ['assistant_id', 'phone_number'] } },
- index.js:399-407 (schema)Defines the input schema for the make_call tool, specifying required assistant_id and phone_number, optional contact_id.inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, phone_number: { type: 'string', description: 'Phone number to call' }, contact_id: { type: 'string', description: 'Contact ID (optional)' } }, required: ['assistant_id', 'phone_number'] }