Skip to content

MSG91

Updated View as Markdown

Read SMS template summaries and WhatsApp prepaid balances with your own authkey.

What you can do (2)

What you can do

Available commands: 2 (2 read, 0 write). Enable only the commands your application needs.

Command Effect
List SMS template summaries — msg91.templates.list Read
Get WhatsApp prepaid balance — msg91.whatsapp.prepaid-balance.get Read

Connect and use

Connect and use

Open the integration's connection form to check the available credential source. The source has not been resolved for this documentation export. The instructions below apply when using your own provider account.

Get your provider credentials

Follow these steps for MSG91, then enter the issued values in the connection form below.

  1. Sign in to the MSG91 control panel and open Authkey. Verify your registered mobile number with its OTP, choose Create New, name a dedicated Tooluse.net key and select a rule limited to the services you need. Copy the authkey. IP security is enabled by default: whitelist the Tooluse.net runtime’s verified public outbound IP supplied by your deployment administrator, not your browser’s address or an API inbound hostname. An IP-restricted key cannot work until that egress is confirmed and allowed; do not turn off IP security as a troubleshooting shortcut. In My tools > MSG91 > Use my provider credentials paste the authkey, select reads and save. Tooluse.net encrypts the key and clears the form. SMS templates returns IDs/names only. WhatsApp prepaid balance requires an existing integrated number with country code and digits only; WhatsApp onboarding/KYC and source service permissions remain MSG91 requirements. The balance endpoint uses POST only to read, with service fixed internally to whatsapp. No SMS/OTP/WhatsApp message is sent and no paid recharge is made. No ambiguous legacy numeric balance endpoint is used. Disable or rotate the dedicated authkey in MSG91 and disconnect here when finished. Real provider accounts, IP approval and service onboarding are not verified by the synthetic tests.

Official credential setup

Where to enter credentials

In the integration page, sign in, choose your workspace and open Connect. If a Credentials choice is shown, select Use my credentials. Fill the following connection fields and save. Provider credentials belong in this form, never in an MCP configuration or tool input.

Connection field Requirement
MSG91 authkey Required

Open API keys and create a Tooluse.net key for the enabled commands.

Set TOOLUSE_API_KEY in your client and use the shared MCP configuration.

Configure Claude Code, Codex or Cursor once

Permissions and results

If you have more than one workspace, check the selected workspace in the connection or API-key dialog before saving. Roles, enabled commands, expiry and revocation use Tooluse.net's existing permissions. Disabling a connection or revoking a key immediately prevents new calls.

Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.

Your connection's daily allowance and key permissions also apply. Adding a connection does not make a provider request.

Calls return the shared execution receipt and a Claude tool_result. Provider output varies by operation; consult the provider documentation for its response fields. Unconfirmed calls should be checked before retrying.

Call from your client

Use the shared MCP configuration. Refresh your client's tool list after saving the connection or changing key permissions, then call the returned tool name with the example input below.

Configure Claude Code, Codex or Cursor once

Discover your enabled tools

List permitted tools in Claude format. Read every page using page and size (maximum 100) until all results have been received. Use the returned name, not a catalog capability identifier, in the tool_use block.

curl 'https://api.tooluse.net/v1/tools' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY"

Find this command in the tool list permitted by your key. Replace svc_FROM_YOUR_TOOL_LIST with its returned name. Use a new Idempotency-Key for each new call and retain it when retrying that same call.

HTTP call

curl 'https://api.tooluse.net/v1/tool-calls' \
  -H "Authorization: Bearer $TOOLUSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: replace-with-a-new-call-id' \
  --data '{
  "type": "tool_use",
  "id": "toolu_example",
  "name": "svc_FROM_YOUR_TOOL_LIST",
  "input": {}
}'

Send one Claude tool_use block per request. Keep the same Idempotency-Key when retrying the same request; use a new key for a new call. The response includes the shared Tooluse.net receipt and Claude tool_result. Check both HTTP status and the returned tool result before treating a call as successful.

Commands

List SMS template summaries — msg91.templates.list

Read SMS template IDs and names available to your authkey. The documented endpoint has no pagination parameters; this command makes one response-size-bounded request without traversal. It does not send messages or return template content.

This is a read operation. Provider rate limits and data access rules still apply.

Connect and use

Parameters

Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.

This tool has no input parameters.

Full JSON Schema

Full JSON Schema

Example input

{}

At most 1 provider requests per invocation; timeout: 30 seconds.

Get WhatsApp prepaid balance — msg91.whatsapp.prepaid-balance.get

Read the prepaid balance and plan status for one existing WhatsApp integrated number. This documented POST is a read; it does not send messages, recharge the wallet or change a plan.

This is a read operation. Provider rate limits and data access rules still apply.

Connect and use

Parameters

Requiredness is local to the containing object. A required child is required only when its parent object or array item is provided. Alternative schemas are identified in the Constraints column; the linked full JSON Schema is authoritative.

Parameter Type Required in parent Description Constraints
body object Required additionalProperties: false
body.integrated_number string Required Existing WhatsApp integrated phone number with country code, digits only. pattern: "^[1-9][0-9]{7,14}$"

Full JSON Schema

Full JSON Schema

Example input

{
  "body": {
    "integrated_number": "919999999999"
  }
}

At most 1 provider requests per invocation; timeout: 30 seconds.

Errors

Check the key's expiry, revocation, workspace and allowed operations.

Reuse the same idempotency key only for the same request.

The connection or provider limit has been reached. Check the receipt before retrying.

Test the connection

Open the integration's commands below to inspect parameters and examples. Start with a read command for an account or resource you can access. Refresh your client's tool list, use the returned tool name, and check the execution result and usage. Provider charges and permissions still apply. Never test a write against production data without reviewing it.

Official provider documentation

Type to search…

↑↓ navigate↵ selectEsc close