Skip to main content
Glama
1msg MCP

1msg MCP

Official
by 1msg

send_template

Sends a WhatsApp template message outside the 24-hour session window, using Cloud API component objects so you can reach contacts when standard replies are closed.

Instructions

Send a WhatsApp template message (works outside the 24-hour session window).

Use this tool — not send_message — when the 24h session is closed.

params MUST be Cloud API component objects, never a flat list of strings and never the old On-Prem hsm / localizable_params format.

Example body variable {{1}}:

{
  "type": "body",
  "parameters": [{ "type": "text", "text": "Ivan" }]
}

Do not send "type": "hsm" and do not send params: ["Ivan", "123"].

Supported params button sub_type values include: url, quick_reply, copy_code / coupon_code, catalog, flow, limited_time_offer, and order_details (WhatsApp Payments India only — requires an approved Utility template with an ORDER_DETAILS button).

Convenience wrapper with structured fields: POST /sendOrderDetails.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "send_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneNo
chatIdNo
paramsNo
languageNo
templateNo
namespaceNo
useMMliteNo
quotedMsgIdNo
messageSendTtlSecondsNo
messageActivitySharingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.10
    • addedInput schema / properties / chatId
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / params / items / additionalProperties
      Added value: +{}
    • addedInput schema / properties / params / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / params / items / type
      Previous value: -"string"New value: +"object"
    • addedInput schema / properties / quotedMsgId
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does disclose real behavior: the 24h-window gating, strict component-object payload format, the legacy formats that are rejected, and an eligibility constraint on `order_details` (India only, requires an approved Utility template with an ORDER_DETAILS button). It stops short of describing delivery semantics, auth requirements, rate limits, or what an error/misformatted payload returns, which keeps it below a 5.

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 critical distinction from `send_message` is front-loaded in the first two lines, followed by the payload constraint and then specialization details — good ordering with bold emphasis on the load-bearing terms. The embedded JSON example and sub_type enumeration earn their space, though the description is long relative to what it ultimately documents about the other nine parameters.

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 10-parameter mutation tool with no annotations and no output schema, the description covers the highest-risk surface (payload format for `params`) and the main selection decision, which is the important part. However, eight parameters and all return/error behavior remain undocumented anywhere, so an agent still has to guess at recipient identification (`phone` vs `chatId`) and language/namespace handling.

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 0% across 10 parameters, so the description must compensate — and it only partly does. It adds substantial meaning for `params` (component-object shape, a worked example for a `{{1}}` body variable, and an enumerated list of button `sub_type` values), but says nothing about `phone`, `chatId`, `template`, `namespace`, `language`, `useMMlite`, `quotedMsgId`, `messageSendTtlSeconds`, or `messageActivitySharing`.

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?

Opens with a specific verb+resource ("Send a WhatsApp template message") and immediately scopes it to the condition that defines it: messaging outside the 24-hour session window. It explicitly names the sibling it must not be confused with (`send_message`) and states the boundary between them, so an agent can disambiguate without opening either schema.

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?

Gives an explicit when-to-use rule ("Use this tool — not `send_message` — when the 24h session is closed") plus when-not guidance in the form of two named anti-patterns (`hsm` type and flat `params` string arrays). It also routes a specialized case to an alternative endpoint (`POST /sendOrderDetails`), which is exactly the kind of sibling routing that prevents wrong tool selection.

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