Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

whatsapp_send_template

Send a pre-approved WhatsApp message template to a recipient, enabling compliant outreach outside the 24-hour customer-service window.

Instructions

Send a pre-approved WhatsApp message template. This is the only message kind allowed outside the 24h customer-service window.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "to": "<to>",
      "template_name": "<template_name>"
    },
    "name": "whatsapp_send_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient phone number in E.164 (+55...) or wa_id
componentsNoTemplate components array (header/body/buttons parameters).
access_tokenNoOptional override for the access token (falls back to WHATSAPP_ACCESS_TOKEN env)
language_codeNoBCP-47 style code (pt_BR, en_US)pt_BR
template_nameYes
phone_number_idNoWhatsApp Business Phone Number ID (falls back to WHATSAPP_PHONE_NUMBER_ID env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and the 24h-window policy is genuinely useful behavioral context that the schema cannot express. However, it says nothing about permission/auth requirements (access token and phone number ID fallbacks), template approval prerequisites, or delivery/error behavior for a send operation.

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?

Two sentences with zero filler; the action is stated first and the key constraint second. Nothing could be removed without losing information.

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?

For a 6-parameter send tool with no annotations and no output schema, the description covers the policy context well but leaves the agent without guidance on template components structure, required template existence (siblings create/list templates), or what a successful send returns. Adequate but thin given the complexity.

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

Parameters3/5

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

Schema description coverage is 83%, so the schema already documents E.164/wa_id format, BCP-47 language code, token overrides, and the components array. The description adds no parameter meaning at all, which meets the baseline for high-coverage schemas but does not exceed it.

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 a specific verb+resource: sending a 'pre-approved WhatsApp message template'. The scope note about the 24h window implicitly separates it from free-form senders like whatsapp_send_text, but no sibling is named explicitly, so differentiation is inferential rather than stated.

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?

Gives a clear use condition: this is the only message kind permitted outside the 24-hour customer-service window, which tells an agent exactly when this tool is mandatory. It stops short of the converse case (use free-form text inside the window), leaving one branch to inference.

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