send_sms
Send SMS messages via a VoiceAI assistant by specifying the recipient's phone number and message content. Integrates with VoiceAI-MCP-VAVicky for streamlined communication.
Instructions
Send SMS message through assistant
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assistant_id | Yes | Assistant ID | |
| contact_id | No | Contact ID (optional) | |
| message | Yes | SMS message content | |
| phone_number | Yes | Phone number to send SMS |
Implementation Reference
- index.js:684-698 (handler)The handler logic for the 'send_sms' tool within the executeTool method's switch statement. It sets up a POST request to the backend API with the assistant_id in the path, phone_number and message in the body, and optionally includes contact_id and customData.case 'send_sms': url = `${this.baseUrl}/twilio/${args.assistant_id}/sms`; method = 'POST'; body = { phonenumber: args.phone_number, message: args.message }; if (args.contact_id) { body.contact_id = args.contact_id; body.customData = { phonenumber: args.phone_number, message: args.message }; } break;
- index.js:442-455 (registration)The registration of the 'send_sms' tool in the ListToolsRequestHandler response, including its name, description, and input schema definition.{ name: 'send_sms', description: 'Send SMS message through assistant', inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, phone_number: { type: 'string', description: 'Phone number to send SMS' }, message: { type: 'string', description: 'SMS message content' }, contact_id: { type: 'string', description: 'Contact ID (optional)' } }, required: ['assistant_id', 'phone_number', 'message'] } }
- index.js:445-454 (schema)The input schema for the 'send_sms' tool, defining parameters like assistant_id, phone_number, message (required), and optional contact_id.inputSchema: { type: 'object', properties: { assistant_id: { type: 'string', description: 'Assistant ID' }, phone_number: { type: 'string', description: 'Phone number to send SMS' }, message: { type: 'string', description: 'SMS message content' }, contact_id: { type: 'string', description: 'Contact ID (optional)' } }, required: ['assistant_id', 'phone_number', 'message'] }