Skip to main content
Glama

List WhatsApp message templates

list_whatsapp_templates
Read-onlyIdempotent

Read the site's WhatsApp Business message templates, including their Meta approval status, language, category, body components and rejection reason. Use this before submitting or deleting a template. The site must have WhatsApp Business connected.

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": "list_whatsapp_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
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/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description usefully adds the preconditions (WhatsApp must be connected) and what metadata the response carries, including rejection reasons. It says nothing about freshness of approval status or result-set limits, which matter for a read of externally-synced state.

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 short sentences, front-loaded with the resource and the payload contents, then the usage cue, then the prerequisite. Nothing is redundant or padded.

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 correctly compensates by listing the fields the agent will receive, and it flags the connectivity prerequisite. Remaining gaps are freshness of Meta approval status and whether results are paginated or capped, which a caller must check elsewhere.

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 coverage is 100%, so site_id and user_goal are already documented in the schema. The description only gestures at the site parameter via 'the site's' and says nothing about user_goal, adding no semantic value beyond the schema. 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 (read the site's WhatsApp Business message templates) and enumerates the returned fields: approval status, language, category, body components, rejection reason. That enumeration separates it from draft/submit/delete siblings without needing to name them.

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?

Gives a clear usage condition ('Use this before submitting or deleting a template') plus a hard prerequisite (WhatsApp Business must be connected). It stops short of naming close alternatives such as refresh_whatsapp_template_statuses, which an agent might need when approval data looks stale.

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