Skip to main content
Glama

Submit a WhatsApp template for approval

submit_whatsapp_template
Destructive

Submit the exact approved message template to the site's connected WhatsApp Business provider and save the returned pending/approved row locally. This reaches Meta or another provider and may create a permanent template there; call it only after the owner has explicitly approved the exact name, category, language, body, variables and buttons. Use list_whatsapp_templates first to avoid a duplicate name.

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": {
      "site_id": "<site_id>",
      "name": "<name>",
      "category": "<category>",
      "language": "<language>",
      "body": "<body>"
    },
    "name": "submit_whatsapp_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
nameYesLowercase template name with letters, digits and underscores only
buttonsNo
site_idYesThe site, from list_sites
categoryYes
languageYesLocale such as en_US, hi, es or pt_BR
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
footer_textNo
header_textNo
header_typeNo
variable_examplesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds real context beyond them: the call reaches Meta or another provider and may create a permanent template there, and a pending/approved row is written locally. It does not cover failure modes or whether a partially failed submission leaves state behind, which keeps it short of 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.

Conciseness5/5

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

Three sentences, front-loaded with what the call does and its external side effect, then the approval gate, then the dedup precaution. No filler and no repetition of the annotation data.

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 destructive, externally visible mutation with no output schema, the description covers the risk profile, the human-approval prerequisite and the duplicate-prevention step, plus what is persisted locally. The remaining gap is the header/footer/user_goal parameters, which are never mentioned.

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 only 36% across 11 parameters, so the description must compensate, and it does partially by enumerating name, category, language, body, variables and buttons as things needing owner sign-off. It adds no meaning for site_id, header_type, header_text, footer_text or user_goal, which remain undocumented outside their schema hints.

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?

A specific verb plus resource ("submit ... template to the site's connected WhatsApp Business provider") with an explicit second effect ("save the returned pending/approved row locally"). It is clearly separated from sibling draft_whatsapp_template / list_whatsapp_templates by the fact that this one actually reaches the provider.

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?

States an explicit precondition ("call it only after the owner has explicitly approved the exact name, category, language, body, variables and buttons") and an explicit ordering constraint against a named sibling ("Use list_whatsapp_templates first to avoid a duplicate name"). An agent knows both when to call and when not to.

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