Skip to main content
Glama

Change a WhatsApp template

flow_update_whatsapp_template
Idempotent

Changes a WhatsApp template that is a draft Meta has not seen (ids from flow_list_templates): its text header, body, footer, buttons or fallbacks. Fields left out stay as they are; null removes the header or footer; buttons and fallbacks replace the whole list. Any other template changes in the portal. Variables are written {{name}} in lowercase letters and underscores. {{first_name}} (fallback up to 20 characters), {{city}} (30) and {{phone_number}} come from the contact; every variable but {{phone_number}} needs a fallback, sent when there is no value. For a name of your own, and a link's trailing variable, the fallback is what a campaign sends and the example Meta's reviewer reads; an API send can give its own value. Meta's rules apply: no variable at the start or end of the text or next to another, a text header with at most one variable, a footer without one, at most 10 buttons (2 URL, 1 PHONE_NUMBER, 1 COPY_CODE, which is MARKETING only) with quick replies together. Saved as a draft: Meta sees it only once it is submitted in the portal. The answer gives its link and preview: the message as a recipient sees it, each variable filled with its fallback.

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": {
      "id": "<id>"
    },
    "name": "flow_update_whatsapp_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
bodyNo
footerNo
headerNo
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
buttonsNo
fallbacksNoVariable name → its fallback; every variable but {{phone_number}} needs one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description discloses that changes stay local as a draft until portal submission, exactly which fields are replaced wholesale versus merged, and validates the variable fallback model. It also states the return value (link plus a preview rendering each variable with its fallback), which is essential context given there is no output schema.

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

Conciseness3/5

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

It is front-loaded with the core action and scope, but several sentences are dense or fragmentary ('Any other template changes in the portal.') and the fallback/preview sentence requires re-reading. The information earns its place, but the packaging could be tightened without loss.

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?

For a nested 7-parameter mutation with low schema coverage and no output schema, the description covers the draft lifecycle, field merge semantics, variable/fallback rules, validation constraints and the shape of the response. An agent has enough to call it correctly without opening anything else.

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 only 29% schema coverage, the description carries the burden and does: it defines the {{lowercase_underscore}} variable syntax, explains that every variable but {{phone_number}} requires a fallback, and explains the fallbacks object as a name-to-fallback map and what a trailing URL variable's fallback means. It also gives Meta's placement rules (no variable at start/end or adjacent, header max one variable, footer none, button limits) that no schema field encodes.

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 names a specific verb and resource ('Changes a WhatsApp template') and pins the scope precisely to drafts Meta has not seen, telling the agent to get ids from flow_list_templates. It also carves out the boundary that other template changes happen in the portal, so the agent can separate this from flow_update_template or flow_update_campaign_draft.

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?

Clear preconditions: the template must be a draft Meta has not seen, and non-WhatsApp or already-submitted template changes belong in the portal. It gives field-level rules (omitted fields unchanged, null clears header/footer, buttons replace the whole list) but never names a sibling alternative to call instead for those cases, leaving the agent to infer 'use the portal' means 'no tool'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources