Skip to main content
Glama
whatsapp-cloud-mcp

whatsapp-cloud-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WHATSAPP_DRY_RUNNo1/true to preview requests without sending.0
WHATSAPP_APP_SECRETNoApp secret for webhook signature verification.
WHATSAPP_TIMEOUT_MSNoPer-request timeout in ms.15000
WHATSAPP_UPLOAD_DIRNoDirectory whose files upload_media's file_path may read; unset disables local-file uploads.
WHATSAPP_API_VERSIONNoGraph API version.v27.0
WHATSAPP_ACCESS_TOKENYesCloud API access token.
WHATSAPP_GRAPH_BASE_URLNoGraph base URL (override for proxies/mocks).https://graph.facebook.com
WHATSAPP_PHONE_NUMBER_IDYesSender phone-number ID.
WHATSAPP_BUSINESS_ACCOUNT_IDNoWABA ID (needed by list_message_templates).
WHATSAPP_DEFAULT_COUNTRY_CODENoCountry code for national numbers (e.g. 971).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Send WhatsApp messages via the official WhatsApp Cloud API. Remember: free-form messages only work within the 24-hour customer-service window (after the user last messaged you). To start or re-open a conversation, send an approved template with send_template_message. Use dry-run to preview requests safely.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
send_text_messageA

Send a plain text WhatsApp message to a phone number. Only works inside the 24-hour customer-service window (i.e. the user messaged you in the last 24h). To start a brand-new conversation, use send_template_message instead.

send_template_messageA

Send a pre-approved WhatsApp message template. Templates are REQUIRED to start a conversation (or to re-engage a user after the 24-hour customer-service window has closed). Use body_parameters for simple {{1}},{{2}} placeholders, or components for advanced header/button parameters. Discover templates with list_message_templates.

send_media_messageA

Send an image, video, audio, document or sticker, either by a public HTTPS link or by a media_id from upload_media. Captions are supported for image/video/document only. Requires an open 24-hour customer-service window.

send_interactive_buttonsA

Send up to 3 quick-reply buttons with a message. The user's tap is delivered to your webhook as a button reply (id + title). Requires an open 24-hour customer-service window.

send_interactive_listA

Send a tappable list menu (up to 10 rows total across sections). The user's selection is delivered to your webhook as a list reply (id + title). Requires an open 24-hour customer-service window.

mark_as_readA

Mark an incoming message as read (blue ticks), optionally also showing a typing indicator. Pass the wamid of the message you received.

list_message_templatesA

List the message templates for your WhatsApp Business Account, including their approval status, category and language. Use this to find a template name/language to pass to send_template_message.

get_business_profileA

Fetch the public WhatsApp business profile for your phone number (about, address, description, email, websites, vertical, profile picture).

upload_mediaA

Upload a media file to WhatsApp and get back a media_id you can reuse in send_media_message. Provide exactly one of file_path (a local file) or url (a remote file to fetch). file_path only works when the server is configured with WHATSAPP_UPLOAD_DIR and the file lives inside it; url must be a public https:// URL. The MIME type is inferred from the file extension when not given. Max 100MB.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 9 tools

Disambiguation5/5

Each send_* tool maps to a distinct WhatsApp message type (text, template, media, interactive list, interactive buttons) and the descriptions explicitly state the conditions under which each applies, including the 24-hour window constraint. Even the closely related interactive list vs. buttons pair is clearly separated by payload shape and row/button limits. Read/receipt, template discovery, profile fetch, and media upload tools are each unambiguous.

Naming Consistency5/5

All nine tools follow a consistent snake_case verb_noun convention (send_*, list_*, get_*, mark_*, upload_*). The verb choice is predictable for each action type, with no camelCase or naming-style mixing.

Tool Count5/5

Nine tools is well within the sweet spot and each earns its place, covering the distinct outbound message types plus the supporting operations agents actually need. Nothing feels redundant or padded.

Completeness4/5

The messaging lifecycle is well covered: text/template/media/interactive sends, mark-as-read, template discovery, media upload, and profile fetch. Minor gaps remain, such as updating the business profile, downloading/retrieving received media, or reactions, but agents can work around these for the core send/receive flow.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues