Skip to main content
Glama
messaging-mcp

messaging-mcp

Send WhatsApp template

send_whatsapp_template

Sends an approved WhatsApp template outside the 24-hour reply window; provide the template name, language code, and body parameters in order.

Instructions

Send an approved WhatsApp template (works outside the 24 hour window). Pass the template name, its language code and the body parameters in order. Use list_whatsapp_templates first. Marketing templates need the customer's opt-in.

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": {
      "conversation_id": "<conversation_id>",
      "name": "<name>",
      "language": "<language>"
    },
    "name": "send_whatsapp_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTemplate name.
languageYesTemplate language code, for example en_US, tr, de.
parametersNoBody parameter values in order ({{1}}, {{2}}, ...).
conversation_idYesThe other party id as returned by list_conversations: phone number (WhatsApp), PSID (Messenger), IGSID (Instagram) or chat id (Telegram).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, open-world, non-idempotent send. The description adds policy context the annotations cannot carry: the template must be pre-approved, the 24 hour window bypass, and the customer opt-in requirement for marketing templates. It says nothing about failure modes (unapproved template, parameter mismatch) or rate limits.

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?

Four short sentences with the purpose and the key constraint front-loaded, then the pre-requisite, then the compliance caveat. Nothing is padded and no sentence repeats another.

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?

With no output schema, the description still covers the operationally critical facts an agent needs: approval status, the 24 hour window, parameter ordering, and marketing opt-in. Only error/response behavior is unaddressed, which is a minor gap for a straightforward send.

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 100%, so every parameter is already documented in the schema. The description's mention of template name, language code and ordered body parameters mirrors the schema rather than adding format, ordering rules or examples beyond it. Baseline 3 applies.

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 and resource ('Send an approved WhatsApp template') and adds the distinguishing scope note that it works outside the 24 hour window, which separates it from a free-form send_message. It does not name the sibling it replaces, but the template-specific framing is enough to tell them apart.

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?

'Use list_whatsapp_templates first' gives an explicit prerequisite step, and the opt-in requirement for marketing templates sets a condition for use. It stops short of stating the inverse case (use send_message when replying inside the 24 hour window), so one path is left to inference.

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