Skip to main content
Glama
nakulben

WhatsApp Business MCP

by nakulben

WhatsApp MCP Server

Manage WhatsApp Business templates and send messages from Claude, ChatGPT, Cursor, VS Code Copilot, or any MCP-compatible client — powered by the Meta Cloud API.

What It Does

Tool

Description

validate_template

Validate a template payload before submitting to Meta

create_template

Submit a template for Meta approval

list_templates

List templates with optional filters (status, category, name)

get_template_detail

Get full details of a template by ID

check_template_status

Quick status check for a template

delete_template

Delete a template by name

send_template_message

Send an approved template to a phone number

send_bulk_template_messages

Send an approved template to multiple phone numbers

8 tools covering the full template lifecycle: create → validate → approve → send.

Related MCP server: gaviwhatsapp-mcp

Quick Start

1. Clone & Install

git clone https://github.com/nakulben/whatsapp-mcp.git
cd whatsapp-mcp
python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install -r requirements.txt

2. Configure Credentials

cp .env.example .env
META_ACCESS_TOKEN=your_access_token
META_WABA_ID=your_whatsapp_business_account_id
META_PHONE_NUMBER_ID=your_phone_number_id
META_APP_ID=your_app_id              # Optional, for media uploads
META_API_VERSION=v24.0               # Optional, defaults to v24.0

Environment variables are used by all modes — local stdio and hosted remote.

How to get these? Go to Meta for Developers, create or select your app, navigate to WhatsApp > API Setup.

3. Connect to Your MCP Client

The server supports 3 transport modes:

Transport

Command

Used By

stdio (default)

python -m whatsapp_mcp

Claude Desktop, Cursor, VS Code, Windsurf

sse

python -m whatsapp_mcp --transport sse

Legacy remote clients

streamable-http

python -m whatsapp_mcp --transport streamable-http

Claude.ai, ChatGPT, newer MCP clients

For HTTP transports, you can customize host/port:

python -m whatsapp_mcp --transport streamable-http --host 0.0.0.0 --port 8000

Claude Desktop (stdio — local)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "whatsapp": {
      "command": "/path/to/whatsapp-mcp/venv/bin/python",
      "args": ["-m", "whatsapp_mcp"],
      "env": {
        "META_ACCESS_TOKEN": "your_access_token",
        "META_WABA_ID": "your_waba_id",
        "META_PHONE_NUMBER_ID": "your_phone_number_id",
        "META_APP_ID": "your_app_id"
      }
    }
  }
}

Claude.ai Web (remote — streamable-http)

Claude.ai connects to remote MCP servers as custom connectors. The connection originates from Anthropic's cloud servers, not from your machine.

  1. Host the server with env vars configured, behind HTTPS:

    python -m whatsapp_mcp --transport streamable-http --host 0.0.0.0 --port 8001
  2. Put it behind HTTPS using nginx, Caddy, or a tunnel (ngrok, Cloudflare Tunnel)

  3. In Claude.ai: go to Customize > Connectors → Add custom connector

  4. Enter your server URL (e.g. https://your-domain.com/mcp/)

  5. Claude supports authless or OAuth-based servers. For simplest setup, leave auth blank — the server will use the env vars you configured in step 1.

Note: Claude.ai does not support custom request headers. The server must be pre-configured with Meta credentials via environment variables. Each hosted server serves one WhatsApp Business Account.

location /mcp/ {
    proxy_pass http://127.0.0.1:8001/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_read_timeout 86400;
}

ChatGPT (remote — Responses API)

ChatGPT supports remote MCP servers via the Responses API. It supports both Streamable HTTP and SSE transports.

Option 1 — Server pre-configured with env vars (simplest):

from openai import OpenAI
client = OpenAI()
resp = client.responses.create(
    model="gpt-4.1",
    tools=[{
        "type": "mcp",
        "server_label": "whatsapp",
        "server_url": "https://your-domain.com/mcp/",
        "require_approval": "never",
    }],
    input="List all my approved templates",
)

Option 2 — Per-request credentials via Bearer token:

Encode your Meta credentials as base64 JSON and pass them in the authorization field. OpenAI forwards this value as the Authorization header to your MCP server:

# Create the token
echo -n '{"access_token":"EAA...","phone_number_id":"123","waba_id":"456"}' | base64
# Output: eyJhY2Nlc3NfdG9rZW4iOiJFQUEuLi4iLCJwaG9uZV9udW1iZXJfaWQiOiIxMjMiLCJ3YWJhX2lkIjoiNDU2In0=
resp = client.responses.create(
    model="gpt-4.1",
    tools=[{
        "type": "mcp",
        "server_label": "whatsapp",
        "server_url": "https://your-domain.com/mcp/",
        "authorization": "eyJhY2Nlc3NfdG9rZW4iOiJFQUEuLi4iLCJwaG9uZV9udW1iZXJfaWQiOiIxMjMiLCJ3YWJhX2lkIjoiNDU2In0=",
        "require_approval": "never",
    }],
    input="List all my approved templates",
)

Note: ChatGPT only supports remote MCP servers (no local stdio). Your server must be publicly accessible over HTTPS.

Cursor (stdio)

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "whatsapp": {
      "command": "/path/to/whatsapp-mcp/venv/bin/python",
      "args": ["-m", "whatsapp_mcp"]
    }
  }
}

VS Code Copilot (stdio)

Add to .vscode/mcp.json:

{
  "servers": {
    "whatsapp": {
      "type": "stdio",
      "command": "/path/to/whatsapp-mcp/venv/bin/python",
      "args": ["-m", "whatsapp_mcp"]
    }
  }
}

Per-Request Credentials (direct HTTP / curl / scripts)

For programmatic access or custom MCP clients, you can pass per-request credentials instead of relying on server env vars. Two methods are supported:

Method 1 — Bearer token (recommended):

Base64-encode a JSON object with your Meta credentials:

# Create the token
TOKEN=$(echo -n '{"access_token":"EAA...","phone_number_id":"123","waba_id":"456"}' | base64)

# Use it
curl -H "Authorization: Bearer $TOKEN" https://your-server.com/mcp/ ...

Required fields: access_token, phone_number_id, waba_id. Optional: app_id, api_version.

Method 2 — X-Meta- headers:*

Header

Required

Description

X-Meta-Access-Token

Yes

Your Meta access token

X-Meta-Phone-Number-Id

Yes

Your WhatsApp phone number ID

X-Meta-Business-Account-Id

Yes

Your WhatsApp Business Account ID

X-Meta-App-Id

No

Your Meta app ID (for media uploads)

X-Meta-Api-Version

No

API version (defaults to v24.0)

If neither Bearer token nor X-Meta-* headers are present, the server falls back to environment variables.

Usage Examples

Once connected, just talk to your AI assistant:

"Create a marketing template called summer_sale with a header image, body text about 50% off, and a Shop Now button"

"List all my approved templates"

"Send the order_confirmation template to +919876543210 with order number ORD-456"

"Validate this template before I submit it: ..."

"Check the status of template ID 123456789"

Supported Template Types

Meta's API has 2 template categories(excluding Authentication). Within each category, templates can have different structural variants — each with its own component layout and validation rules.

Marketing Templates

Structural Variant

Create

Send

Key Components

Text / Image / Video / Document

Header (optional) + Body + Footer + Buttons

Carousel

Cards with per-card header, body, buttons

Catalog

Body + CATALOG button

Limited-Time Offer (LTO)

Body + limited_time_offer component + copy code button

Coupon Code

Body + copy_code button

Multi-Product Message (MPM)

Body + product_list action with sections

Single-Product Message (SPM)

Body + product action

Product Card Carousel

Body + product cards with buttons

Call Permission

Body + call_permission button

Utility Templates

Structural Variant

Create

Send

Key Components

Text / Image / Video / Document

Header (optional) + Body + Footer + Buttons

Order Details

Body + order_details button with payment payload

Order Status

Body + order status parameters

How routing works: When you call create_template, the server inspects the components to auto-detect the structural variant (e.g., presence of cards[] → Carousel, CATALOG button → Catalog) and applies the correct validator. You just pass category: "MARKETING" or "UTILITY" — the variant is determined from the component structure.

Running Tests

pip install pytest pytest-asyncio
python -m pytest tests/ -v

Project Structure

whatsapp-mcp/
├── whatsapp_mcp/
│   ├── __init__.py          # Package version
│   ├── __main__.py          # Entry point (python -m whatsapp_mcp)
│   ├── config.py            # Environment config loader
│   ├── meta_api.py          # Async Meta Graph API client
│   ├── middleware.py         # ASGI middleware for per-request credentials
│   ├── server.py            # MCP server with 8 tools
│   ├── models/              # Pydantic data models
│   │   ├── body.py          # Body component
│   │   ├── header.py        # Header component (text/image/video/document)
│   │   ├── footer.py        # Footer component
│   │   ├── buttons.py       # Button types (URL, phone, quick reply, etc.)
│   │   ├── buttons_component.py
│   │   ├── enums.py         # Template categories, types, formats
│   │   └── order_models.py  # Order-related models (checkout templates)
│   └── validators/
│       ├── create/          # 12 template creation validators
│       └── send/            # 11 template send validators
├── tests/
│   ├── test_validators.py   # Validator tests
│   ├── test_meta_api.py     # API client tests (mocked HTTP)
│   └── test_tools.py        # MCP tool registration & helper tests
├── .env.example
├── requirements.txt
├── LICENSE                  # MIT
└── ROADMAP.md

Requirements

  • Python 3.10+

  • Meta WhatsApp Business Account

  • System User access token with whatsapp_business_messaging and whatsapp_business_management permissions

Dependencies

Package

Purpose

mcp

Model Context Protocol SDK

httpx

Async HTTP client for Meta API

pydantic

Payload validation

python-dotenv

Environment config

Roadmap

See ROADMAP.md for planned features.

License

MIT — see LICENSE.


Built by Jina Connect — the WhatsApp Business CX platform.

Available Tools

8 tools
check_template_statusA

Check the approval status of a WhatsApp template.

Use this after creating a template to see if Meta approved or rejected it.

Args: template_name: Template name to check template_id: Meta template ID to check directly

Returns: JSON with current status (APPROVED, PENDING, REJECTED, etc.)

ParametersJSON Schema
NameRequiredDescriptionDefault
template_nameNo
template_idNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses the Meta approval domain and enumerates possible status values (APPROVED, PENDING, REJECTED), but omits operational details like rate limits, authentication requirements, or error behaviors when templates are not found.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Excellent structure with clear sections (purpose, usage guidance, Args, Returns). Front-loaded with the core function, zero redundant text, and appropriate use of docstring-style formatting to organize parameter and return value documentation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Appropriate for the tool's complexity (2 optional parameters, simple scalar inputs). The Returns section adequately describes the output semantics given that a formal output schema exists. Could be improved by noting error conditions or parameter validation rules.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the Args section adds crucial semantic context: template_id is explicitly identified as 'Meta template ID' (distinguishing it from internal IDs) and 'directly' implies it's the canonical identifier. However, it fails to clarify the parameter relationship (mutually exclusive vs. hierarchical) or that both are optional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Check') and resource ('approval status of a WhatsApp template'), clearly distinguishing it from sibling tools like create_template or send_template_message which perform actions rather than status monitoring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit temporal guidance ('Use this after creating a template') establishing the workflow sequence, and clarifies the specific value proposition ('see if Meta approved or rejected it'). Lacks explicit 'when not to use' guidance contrasting with get_template_detail.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

create_templateA

Create and submit a WhatsApp template to Meta for approval.

The template will go through Meta's review process. Check status with check_template_status after submission.

Args: name: Template name (lowercase, underscores, starts with letter, max 512) category: MARKETING or UTILITY language: Language code (e.g. "en", "en_US", "hi") components: List of component dicts. Each has a "type" (HEADER, BODY, FOOTER, BUTTONS) and type-specific fields. Example: [ {"type": "HEADER", "format": "TEXT", "text": "Hello {{1}}", "example": {"header_text": ["John"]}}, {"type": "BODY", "text": "Your order {{1}} is {{2}}.", "example": {"body_text": [["ORD-123", "confirmed"]]}}, {"type": "FOOTER", "text": "Reply STOP to opt out"}, {"type": "BUTTONS", "buttons": [ {"type": "QUICK_REPLY", "text": "Track Order"}, {"type": "URL", "text": "View Details", "url": "https://example.com/order/{{1}}", "example": ["https://example.com/order/123"]} ]} ]

Returns: JSON with template ID and status on success, or error details.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYes
categoryYes
languageYes
componentsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full disclosure burden. It successfully explains the asynchronous approval process ('go through Meta's review process') and return value structure. It could improve by mentioning idempotency concerns (duplicate names) or error behavior specifics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections (purpose, Args, Returns). The length is justified given the complexity of the components parameter. Information is front-loaded with the core action in the first sentence, and the extensive example is essential for the nested component structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity of WhatsApp template components and the presence of an output schema (which the description briefly summarizes without redundancy), the description provides complete contextual coverage. The detailed Args example is critical for correct invocation given the lack of schema documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing detailed constraints for each parameter: name formatting rules (lowercase, underscores, max 512), category enums (MARKETING/UTILITY), language format examples, and a comprehensive JSON example for the complex components structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise action ('Create and submit') and target resource ('WhatsApp template to Meta for approval'). It clearly distinguishes this from sibling tools by explicitly mentioning check_template_status as the follow-up action for monitoring the approval process.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear workflow context by stating templates go through Meta's review process and directing users to check_template_status afterward. However, it does not explicitly contrast with validate_template (when to validate vs. create) or clarify failure/retry scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

delete_templateA

Delete a WhatsApp template by name.

WARNING: This permanently deletes ALL language variants of the template.

Args: template_name: Name of the template to delete

Returns: JSON confirming deletion.

ParametersJSON Schema
NameRequiredDescriptionDefault
template_nameYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosure. It successfully communicates the destructive nature ('permanently deletes') and the broad scope ('ALL language variants'). It also notes the return type ('JSON confirming deletion'), though given the output schema exists, this is adequate confirmation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with a clear structure: action statement, critical warning, parameter definition, and return type. Every section earns its place, particularly the warning which is front-loaded. The Args/Returns format is slightly formal but efficient for a single-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 parameter, nested objects=false) and the presence of an output schema, the description is complete. It covers the essential behavioral warning about language variants that the schema cannot express, and acknowledges the return format without needing to detail the JSON structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage (only a title). The Args section compensates by stating 'Name of the template to delete,' which clarifies the parameter's purpose beyond the schema's type information. This successfully bridges the documentation gap for the single required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Delete a WhatsApp template by name,' providing a specific verb (Delete), resource (WhatsApp template), and scope (by name). The warning about deleting 'ALL language variants' further distinguishes this tool's scope from potential siblings that might handle single-language deletion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The WARNING section provides critical context about the irreversible scope (permanent deletion of all language variants), which guides the agent on the gravity of the operation. However, it lacks explicit guidance on when to use this vs. alternatives like update_template, or prerequisites like checking template status first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_template_detailA

Get full details of a WhatsApp template by name or ID.

Provide either template_name or template_id (not both).

Args: template_name: Template name to look up template_id: Meta template ID to look up directly

Returns: JSON with full template details including components.

ParametersJSON Schema
NameRequiredDescriptionDefault
template_nameNo
template_idNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full disclosure burden. It mentions the return format ('JSON with full template details'), but omits behavioral traits like error handling when a template is not found, authentication requirements, rate limiting, or whether this operation is cached vs. real-time.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with a clear first sentence summary followed by Args/Returns sections. Each sentence earns its place. The 'Returns' section is slightly redundant given the existence of an output schema, but remains useful for quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema, the description appropriately does not exhaustively detail return values. However, with zero required parameters and no schema descriptions, the description should clarify the behavior when neither parameter is provided or when both are provided (error vs. precedence).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description successfully compensates by documenting both parameters ('Template name to look up' and 'Meta template ID to look up directly'). It also adds the critical constraint that they are mutually exclusive, which is not captured in the schema structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get full details'), resource ('WhatsApp template'), and lookup mechanism ('by name or ID'). The phrase 'full details' effectively distinguishes this from sibling check_template_status, while 'by name or ID' distinguishes it from list_templates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides critical guidance on mutual exclusivity ('Provide either... not both'), preventing invalid invocations. However, it lacks explicit guidance on when to use this versus check_template_status (status check vs. full retrieval) or list_templates (discovery vs. specific lookup).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_templatesA

List WhatsApp message templates.

Args: limit: Max templates to return (1-100, default 20) after: Pagination cursor for next page name: Filter by template name (exact match) status: Filter by status: APPROVED, PENDING, REJECTED, PAUSED, DISABLED category: Filter by category: MARKETING, UTILITY

Returns: JSON with list of templates and pagination info.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
afterNo
nameNo
statusNo
categoryNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses pagination behavior (cursor-based via 'after') and return format ('JSON with list and pagination info'), but omits safety profile (read-only), rate limits, or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Uses efficient docstring structure with 'Args' and 'Returns' sections. Every line provides specific constraints or semantics; no redundant or filler content despite the structured format.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero schema descriptions, the description adequately covers all filter parameters and pagination. With an output schema existing, the brief return description is sufficient, though it could note that all filters are optional (implied by schema but not explicit).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by documenting all 5 parameters: 'limit' (range 1-100, default 20), 'after' (pagination semantics), 'name' (exact match behavior), and valid enum values for 'status' and 'category'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States clear verb ('List') and resource ('WhatsApp message templates'). Distinction from siblings (create, delete, get_detail, etc.) is implicit via the verb but lacks explicit scope clarification (e.g., which account's templates).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides no guidance on when to use this tool versus siblings like 'get_template_detail' or 'check_template_status'. No mention of prerequisites or when listing is preferable to other operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

send_bulk_template_messagesA

Send an approved template message to multiple phone numbers.

Messages are sent sequentially (one API call per recipient). Each result is tracked individually.

Args: to_list: List of phone numbers with country code template_name: Name of the approved template language: Language code (default "en") components: Optional parameter components (same for all recipients)

Returns: JSON with per-recipient results (successes and failures).

ParametersJSON Schema
NameRequiredDescriptionDefault
to_listYes
template_nameYes
languageNoen
componentsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and excels by disclosing: sequential sending behavior ('one API call per recipient'), granular tracking ('Each result is tracked individually'), return structure ('JSON with per-recipient results'), and prerequisite state ('approved template').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description uses a structured Args/Returns format that efficiently packs information without redundancy. Every sentence serves a purpose, though the structured format slightly reduces prose flow compared to integrated narrative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter bulk operation tool with an output schema, the description is comprehensive. It covers all parameters, explains the sequential execution model, and describes the return format sufficiently, given that the output schema handles detailed return value documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the Args section compensates effectively by adding crucial constraints: country code requirement for phone numbers, default language value ('en'), and the critical constraint that components are 'same for all recipients.' Deducts one point for lack of detail on what 'components' actually contain structurally.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states 'Send an approved template message to multiple phone numbers,' providing a specific verb (send), resource (template message), and scope (multiple phone numbers). This clearly distinguishes the tool from the sibling send_template_message (single recipient) and links to template management siblings via the 'approved' qualifier.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context through 'approved template' (suggesting prerequisite validation) and 'multiple phone numbers' (suggesting bulk use), but lacks explicit guidance on when to choose this over send_template_message or warnings about rate limits despite noting sequential API calls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

send_template_messageA

Send an approved template message to a phone number.

Args: to: Recipient phone number with country code (e.g. "+919876543210") template_name: Name of the approved template to send language: Language code matching the template (default "en") components: Optional list of component parameter dicts for dynamic values. Example for a template with header image and body params: [ {"type": "header", "parameters": [ {"type": "image", "image": {"link": "https://example.com/img.jpg"}} ]}, {"type": "body", "parameters": [ {"type": "text", "text": "John"}, {"type": "text", "text": "ORD-123"} ]} ]

Returns: JSON with message ID on success.

ParametersJSON Schema
NameRequiredDescriptionDefault
toYes
template_nameYes
languageNoen
componentsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses the return value ('JSON with message ID on success') and the approval precondition, but omits safety classification (destructive/write nature), error handling behavior, rate limits, or authentication requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The docstring format with Args/Returns sections is well-structured and front-loaded with the core purpose. The components example is lengthy but necessary given the parameter's complex nested structure and lack of schema constraints; every element serves to clarify usage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters and 0% schema coverage, the description adequately documents all inputs and the output format. It could be improved by mentioning error cases or explicitly contrasting with the bulk send sibling, but it covers the essential operational context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the description provides exemplary compensation with detailed Args documentation. It includes format examples (country code phone format), default values (language 'en'), and a comprehensive nested structure example for the complex 'components' parameter that clarifies the expected object shape.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence 'Send an approved template message to a phone number' provides a specific verb, resource, and target. It implicitly distinguishes from sibling tools by emphasizing 'approved' (contrasting with create/validate templates) and singular 'phone number' (contrasting with send_bulk_template_messages).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions 'approved template,' hinting at a prerequisite workflow involving check_template_status or validate_template, but does not explicitly state when to use this single-send tool versus send_bulk_template_messages or provide alternative selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

validate_templateA

Validate a WhatsApp template against Meta's rules before submitting.

Use this to check for errors before creating a template.

Args: name: Template name (lowercase, underscores, starts with letter) category: MARKETING or UTILITY language: Language code (e.g. "en", "en_US", "hi") components: List of component dicts (HEADER, BODY, FOOTER, BUTTONS) template_type: TEXT, IMAGE, VIDEO, DOCUMENT, CAROUSEL, CATALOG, etc. is_lto: True if this is a Limited Time Offer template

Returns: Validation result with any errors found.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYes
categoryYes
languageYes
componentsYes
template_typeNoTEXT
is_ltoNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It successfully clarifies that this performs a rules-based validation without side effects ('before submitting'), and describes the output ('Validation result with any errors found'). Could be improved by explicitly stating this is a safe, read-only operation with no rate limit consumption.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with clear sections (purpose, usage, Args, Returns). Every sentence provides distinct value: the first defines scope, the second establishes workflow, and the Args/Returns sections document parameters. No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (6 parameters including nested array objects) and complete lack of schema descriptions, the description provides comprehensive coverage. Despite the existence of an output schema, the brief Returns summary adds useful context about error-focused output without being redundant.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Excellent compensation for 0% schema description coverage. The Args section provides rich semantic context for all 6 parameters: format constraints for 'name' (lowercase, underscores), valid values for 'category' (MARKETING/UTILITY) and 'template_type', examples for 'language', and structural guidance for 'components' (HEADER, BODY, FOOTER, BUTTONS).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action (validate), target resource (WhatsApp template), and validation criteria (against Meta's rules). The phrase 'before submitting' effectively distinguishes this from the sibling create_template tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use the tool ('before creating a template') and establishes the workflow relationship with sibling tools. The guidance 'Use this to check for errors' clearly indicates this is a pre-flight check versus the actual creation/submission.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a distinct, well-defined purpose with clear boundaries. The single vs. bulk sending tools are clearly differentiated, as are validation (pre-submission check) vs. creation (actual submission). Status checking and detail retrieval serve different workflow needs despite both being read operations.

Naming Consistency5/5

All tools follow a consistent snake_case verb_noun pattern (create_template, send_template_message, check_template_status). Related operations use consistent core terms ('template', 'send') with appropriate qualifiers ('bulk', 'status', 'detail') to distinguish variants.

Tool Count5/5

Eight tools is well-scoped for WhatsApp Business template management, covering the full lifecycle (create, validate, list, get, delete, check status) and messaging (single and bulk send). No tools feel redundant or gratuitous.

Completeness4/5

Covers template CRUD operations comprehensively (note: WhatsApp templates cannot be updated, only deleted/recreated). Minor gap: no tools to check delivery/read status of sent messages after sending, only the initial send operations.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables sending WhatsApp messages through Claude Desktop and other MCP-compatible LLMs. Supports single and bulk messaging, phone number validation, and session management via the zapr.link service.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Turns Claude Code, Claude Desktop, Cursor, Windsurf or ChatGPT into a WhatsApp operator that knows your customers, your templates, your wallet, and your funnel.
    86
    3
    MIT

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/nakulben/whatsapp-mcp'

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