MetorialDocs

Set up MSG91 in Metorial for Claude, ChatGPT and Cursor

Share MSG91 with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 19 tools (8 read-only).

To give your team MSG91 in Claude, ChatGPT, Cursor and other AI clients, an admin shares the MSG91 integration in a Metorial portal, and each person connects with an API key. Agents can send and manage multi-channel communications across SMS, Email, WhatsApp, Voice, and RCS. The integration has 19 tools, 8 read-only, 10 write and 1 destructive, plus 5 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API Key (Authkey)API tokenauthkey

API Key (Authkey)

To connect, a person enters:

  • authkey: MSG91 authentication key (Authkey). Found in the MSG91 panel under the username dropdown.

Admin: share MSG91 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 MSG91. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

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

Choose who gets it

Add the access groups that should see MSG91. 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 MSG91 integration. Once it exists, check which groups have it:

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

Employee: connect MSG91

In the portal

Open MSG91 in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (authkey).

Confirm

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

With the CLI

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

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your MSG91 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 msg91
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 8 read-only tools, such as verify_otp and validate_email, and lose the 10 write tools, such as send_otp or send_sms, and the destructive tool delete_contacts.

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 msg91
metorial tools <integration-id>
metorial call <integration-id> get_phonebook_fields -d '{}'

metorial tools lists the 19 tools, minus any you rejected. get_phonebook_fields takes no input. It retrieves the available phonebook fields configured in MSG91 Segmento.

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

Tools

Read-only tools (8)

  • verify_otp: Verify a one-time password (OTP) entered by a user against the OTP that was previously sent to their mobile number. Needs mobile and otp.
  • get_messaging_logs: Retrieve messaging logs for SMS, Email, WhatsApp, Voice, or RCS channels. Needs channel.
  • search_contacts: Search and filter contacts in MSG91 Segmento.
  • validate_email: Validate an email address to check if it exists, is properly formatted, and is deliverable. Needs email.
  • get_phonebook_fields: Retrieve the available phonebook fields configured in MSG91 Segmento.
  • list_whatsapp_numbers: List WhatsApp Business numbers integrated with your MSG91 account.
  • list_email_templates: List existing MSG91 email templates and their identifiers for send_email.
  • list_whatsapp_templates: List WhatsApp templates for an integrated number, including names and languages needed by send_whatsapp_message.

Write tools (10)

  • send_voice_message: Send voice SMS (text-to-speech) calls or initiate click-to-call (two-way call) sessions. Needs callType and callerId.
  • send_otp: Send a one-time password (OTP) to a mobile number. Needs mobile.
  • send_rcs_message: Send Rich Communication Services (RCS) messages with different content types: text templates, media (images/videos), or rich cards with optional suggestions. Needs contentType, to and senderId.
  • track_event: Track user events in MSG91 Segmento for contact activity tracking and user journey analysis. Needs events.
  • send_whatsapp_message: Send template-based WhatsApp messages to one or more recipients. Needs integratedNumber, templateName, languageCode and recipients.
  • send_email: Send transactional emails using a pre-created template. Needs templateId, from, domain and recipients.
  • send_sms: Send SMS messages using a pre-approved template (flow). Needs templateId and recipients.
  • create_or_update_contact: Create a new contact or update an existing contact in MSG91 Segmento. Needs contactFields.
  • resend_otp: Resend a one-time password (OTP) to a mobile number. Needs mobile.
  • run_campaign: Launch a multi-channel campaign that sends messages across SMS, WhatsApp, Email, and other configured channels. Needs campaignSlug and recipients.

Destructive tools (1)

  • delete_contacts: Delete one or more contacts from MSG91 Segmento by their IDs. Needs contactIds.

Triggers

MSG91 has 5 triggers, which fire on events in MSG91:

  • voice_call_report: Receive delivery reports for outbound and inbound voice calls including success/failure status, caller ID, agent info, call direction, and failure reasons.
  • whatsapp_delivery_report: Receive delivery status updates and inbound messages for WhatsApp.
  • sms_delivery_report: Receive real-time delivery status updates for sent SMS messages.
  • rcs_delivery_report: Receive delivery status updates for RCS messages including status changes and message details.
  • email_delivery_report: Receive delivery status updates for sent emails including request received, delivery reports, opened, clicked, unsubscribed, and complaints.

Next steps