Skip to main content
Glama

Draft a WhatsApp message template

draft_whatsapp_template

Generate an editable WhatsApp Business template draft from the site's facts and a use case. This runs no Meta request and saves nothing: show the draft to the owner, let them edit it, then call submit_whatsapp_template only after they explicitly approve the exact message. Drafts are limited to 20 per workspace per hour.

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>",
      "use_case": "<use_case>",
      "language": "<language>"
    },
    "name": "draft_whatsapp_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
languageYesLocale such as en_US, hi, es or pt_BR
use_caseYesWhat the business needs the template to say, such as an appointment reminder
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing two side-effect facts an agent could not infer: no Meta API request is made and nothing is persisted, plus a concrete rate limit of 20 drafts per workspace per hour. 'Saves nothing' sits in mild tension with readOnlyHint=false, but that annotation is plausibly conservative given the draft is transient and quota-consuming, so this is not a contradiction.

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 tight sentences: what it does, what it does not do plus the gating workflow, then the rate limit. The most decision-relevant facts (no persistence, approval required) are front-loaded with no filler.

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 non-persisting generator with no output schema, the description covers the critical gaps: side effects, quota, and the required human-approval handoff. It does not describe what the draft object looks like (fields, editability surface), which would help an agent know what to present to the owner, but that is a minor omission.

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 site_id, language, use_case and user_goal are already fully documented in the schema, including locale format and the optional user_goal. The description only gestures at 'the site's facts and a use case' and adds no syntax, defaults, or constraints beyond that, so the baseline 3 applies.

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?

States a specific verb and resource — 'Generate an editable WhatsApp Business template draft' — plus its inputs ('from the site's facts and a use case'). It is clearly separable from submit_whatsapp_template, which the description names as the follow-on action rather than the same action.

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?

Explicit sequencing: show the draft to the owner, let them edit it, and call submit_whatsapp_template only after explicit approval of the exact message. This gives both the when and the when-not, and names the alternative tool that consumes the output.

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