Skip to main content
Glama

make_call

Initiate phone calls through an AI assistant by providing an assistant ID and phone number to connect users with voice-based AI interactions.

Instructions

Make a phone call through assistant

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assistant_idYesAssistant ID
phone_numberYesPhone number to call
contact_idNoContact ID (optional)

Implementation Reference

  • Handler logic for the 'make_call' tool within the executeTool method's switch statement. It constructs a POST request to the /twilio/{assistant_id}/call endpoint with the phone_number and optionally 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;
  • Schema definition and registration of the 'make_call' tool in the ListToolsRequestSchema response, including input schema with required assistant_id and phone_number.
    { 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'] } },

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