Skip to main content
Glama

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
NameRequiredDescriptionDefault
assistant_idYesAssistant ID
contact_idNoContact ID (optional)
messageYesSMS message content
phone_numberYesPhone number to send SMS

Implementation Reference

  • 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'] } }
  • 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'] }

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/Business-On-Steroids/MCP-VoiceAI-WhiteLabel'

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