Skip to main content
Glama
TaylorChen

Multi-MCPs

by TaylorChen

make_call

Initiate phone calls using Twilio by specifying recipient, sender, and TwiML URL for call behavior.

Instructions

Make a phone call via Twilio with a TwiML URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYes
twiml_urlYes

Implementation Reference

  • Handler function that executes the 'make_call' tool: validates inputs (to, from, twiml_url) and calls TwilioClient.makeCall.
    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);
    },
  • Input schema definition for the 'make_call' tool specifying required string parameters: to, from, twiml_url.
    inputSchema: {
      type: "object",
      properties: { to: { type: "string" }, from: { type: "string" }, twiml_url: { type: "string" } },
      required: ["to", "from", "twiml_url"],
    },
  • Registration of the 'make_call' tool in the tools array returned by registerTwilio().
    {
      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"],
      },
    },
  • TwilioClient.makeCall helper method that sends POST request to Twilio API to initiate the 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,
      });
    }

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/TaylorChen/muti-mcps'

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