MetorialDocs

Set up Twilio in Metorial for Claude, ChatGPT and Cursor

Share Twilio with your team in Claude, ChatGPT and Cursor through Metorial: auth token or API key sign-in, 16 tools (6 read-only).

To give your team Twilio in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Twilio integration in a Metorial portal, and each person connects with an auth token. Agents can send and receive SMS, MMS, WhatsApp, and RCS messages. The integration has 16 tools, 6 read-only, 5 write and 5 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Twilio in a portal and how each person connects
  • What Twilio asks for when you connect, and where to find it
  • How to keep the 6 read-only tools and reject the other 10

Before you start

Sign-in methods

MethodTypeWhat a person provides
Auth Token (default)API tokenauthToken
API KeyAPI tokenapiKeySid and apiKeySecret

The portal and metorial setup use Auth Token unless someone picks another method.

Auth Token

To connect, a person enters:

  • authToken: Your Twilio Auth Token. Found in the Twilio Console alongside your Account SID.

API Key

To connect, a person enters these values:

  • apiKeySid: Your Twilio API Key SID (starts with SK).
  • apiKeySecret: Your Twilio API Key Secret.

Setup settings

Whichever method you pick, setup also asks for:

  • accountSid: Your Twilio Account SID (starts with AC). Found in the Twilio Console.

Admin: share Twilio in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Twilio. Under Auth Method, keep Auth Token or pick another. For how members connect, choose Each person connects so everyone enters their own auth token, or Shared connection to enter one auth token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Twilio.

Choose who gets it

Add the access groups that should see Twilio. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Twilio integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search twilio

Employee: connect Twilio

In the portal

Open Twilio in the catalog

Sign in to your portal and open Twilio. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your auth token (authToken).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search twilio
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Auth Token. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Twilio connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list twilio
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as list_calls and list_messages, and lose the 5 write tools, such as make_call or send_message, and the 5 destructive tools, such as modify_call or manage_conversation.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list twilio
metorial tools <integration-id>
metorial call <integration-id> list_calls -d '{}'

metorial tools lists the 16 tools, minus any you rejected. list_calls takes no input. It retrieves call records from your Twilio account.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • list_calls: Retrieve call records from your Twilio account.
  • lookup_phone_number: Look up intelligence about a phone number using the Twilio Lookup API. Needs phoneNumber.
  • list_messages: Retrieve a list of messages from your Twilio account.
  • search_phone_numbers: Search for available phone numbers to purchase on Twilio. Needs countryCode.
  • list_recordings: Retrieve Twilio Programmable Voice recording metadata.
  • list_verify_services: List Twilio Verify Services so you can discover the Service SID required by Send Verification and Check Verification.

Write tools (5)

  • send_verification: Send a verification code (OTP) to a user via SMS, WhatsApp, voice call, or email using Twilio Verify. Needs verifyServiceSid, to and channel.
  • check_verification: Verify a code entered by the user against a pending Twilio Verify verification. Needs verifyServiceSid and code.
  • send_message: Send an SMS, MMS, or WhatsApp message to a phone number. Needs to.
  • send_conversation_message: Send a message within a Twilio Conversation. Needs conversationSid.
  • make_call: Initiate an outbound phone call via Twilio. Needs to and from.

Destructive tools (5)

  • modify_call: Modify an in-progress call. Needs callSid.
  • manage_conversation: Create, list, update, or delete Twilio Conversations. Needs action.
  • conversation_participants: Add, list, or remove participants from a Twilio Conversation. Needs action and conversationSid.
  • manage_phone_number: Purchase, list, update, or release phone numbers on your Twilio account. Needs action.
  • manage_messaging_service: Create, list, fetch, update, or delete Twilio Messaging Services. Needs action.

Triggers

Twilio has 4 triggers, which fire on events in Twilio:

  • call_status: Triggered when a voice call status changes (initiated, ringing, answered, completed).
  • message_status: Triggered when a message delivery status changes (e.g. queued, sent, delivered, failed, undelivered, read).
  • incoming_call: Triggered when a voice call is received on a Twilio phone number.
  • incoming_message: Triggered when an SMS, MMS, or WhatsApp message is received on a Twilio phone number.

Next steps