make_call
Make a phone call using Twilio by specifying the recipient, sender, and TwiML URL. Integrate voice communication functionality into applications via the Multi-MCPs server.
Instructions
Make a phone call via Twilio with a TwiML URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| to | Yes | ||
| twiml_url | Yes |
Implementation Reference
- src/apis/twilio/twilio.ts:84-91 (handler)The main handler function for the 'make_call' tool. It validates the input arguments (to, from, twiml_url) and calls the Twilio client's makeCall method to initiate the phone call.async make_call(args: Record<string, unknown>) { if (!cfg.twilioAccountSid || !cfg.twilioAuthToken) throw new Error("TWILIO_ACCOUNT_SID/TWILIO_AUTH_TOKEN are not configured"); const to = String(args.to || ""); const from = String(args.from || ""); const twimlUrl = String(args.twiml_url || ""); if (!to || !from || !twimlUrl) throw new Error("to, from, twiml_url are required"); return client.makeCall(to, from, twimlUrl); },
- src/apis/twilio/twilio.ts:58-65 (registration)Tool registration entry for 'make_call', including name, description, and input schema.name: "make_call", description: "Make a phone call via Twilio with a TwiML URL", inputSchema: { type: "object", properties: { to: { type: "string" }, from: { type: "string" }, twiml_url: { type: "string" } }, required: ["to", "from", "twiml_url"], }, },
- src/apis/twilio/twilio.ts:60-64 (schema)Input schema defining the required parameters for the make_call tool: to, from, twiml_url as strings.inputSchema: { type: "object", properties: { to: { type: "string" }, from: { type: "string" }, twiml_url: { type: "string" } }, required: ["to", "from", "twiml_url"], },
- src/apis/twilio/twilio.ts:25-32 (helper)TwilioClient.makeCall helper method that performs the HTTP POST request to Twilio's Calls endpoint to create a phone call.makeCall(to: string, from: string, twimlUrl: string) { const form = new URLSearchParams({ To: to, From: from, Url: twimlUrl }); return this.request(`/Accounts/${this.accountSid}/Calls.json`, { method: "POST", headers: { Authorization: `Basic ${this.authHeader}`, "content-type": "application/x-www-form-urlencoded" }, body: form as any, }); }