Skip to main content
Glama

WhatsMCP: MCP for WhatsApp

List WhatsApp Business Templates

wa_list_templates
Read-only

List the WhatsApp Business message templates of one of your Business (Cloud API) numbers, with each one's review status (APPROVED, PENDING, REJECTED — a rejected one carries Meta's rejected_reason). Use an APPROVED template's name and language with wa_send_message's template/template_language to start a conversation or message outside the 24-hour window, and supply its 'variables' count as template_variables, in order. Templates apply only to Business numbers, not personal linked-device numbers.

Input Schema

NameRequiredDescriptionDefault
account_idYesthe Business (Cloud API) account whose templates to list, as returned by wa_list_accounts

Output Schema

NameRequiredDescriptionDefault
refusalNopresent only when the call was declined
templatesNoevery message template with its review status; only APPROVED ones can be sent, with the name/language/variables to pass to wa_send_message

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / refusal / properties / candidates
      Added value: +{
      +  "description": "on an account_ambiguous refusal: the accounts to choose from — retry with one of these as account_id",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account_id": {
      +        "description": "the id to retry with as account_id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "the account's WhatsApp display name",
      +        "type": "string"
      +      },
      +      "phone": {
      +        "description": "the account's phone number, E.164",
      +        "type": "string"
      +      },
      +      "status": {
      +        "description": "whether the number works right now — live, connecting, or why not, as wa_list_accounts reports it",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "account_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  2. Changed4 schema fields changed
    • addedOutput schema / properties / refusal / properties / account_status
      Added value: +{
      +  "description": "when the number is not working: its status — starting, not_running, whatsapp_down, suspended, pairing, unlinked or locked",
      +  "type": "string"
      +}
    • addedOutput schema / properties / refusal / properties / account_status_reason
      Added value: +{
      +  "description": "the detail of account_status, e.g. no_egress, stopped, no_plan",
      +  "type": "string"
      +}
    • addedOutput schema / properties / refusal / properties / since
      Added value: +{
      +  "description": "when the number stopped working, RFC3339, when known",
      +  "type": "string"
      +}
    • addedOutput schema / properties / templates / items / properties / call_permission
      Added value: +{
      +  "description": "true when the template asks the customer to allow the business to call them (WhatsApp's call permission request)",
      +  "type": "boolean"
      +}
  3. Changed6 schema fields changed
    • changedOutput schema / properties / templates / description
      Previous value: -"the approved message templates, with the name/language/variables to pass to wa_send_message"New value: +"every message template with its review status; only APPROVED ones can be sent, with the name/language/variables to pass to wa_send_message"
    • addedOutput schema / properties / templates / items / properties / body
      Added value: +{
      +  "description": "the template's body text as Meta holds it, with its {{n}} variables",
      +  "type": "string"
      +}
    • addedOutput schema / properties / templates / items / properties / buttons
      Added value: +{
      +  "description": "one line per button, e.g. 'Quick reply: Yes' or 'Link: Shop → https://…'",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / templates / items / properties / footer
      Added value: +{
      +  "description": "the template's footer, if any",
      +  "type": "string"
      +}
    • addedOutput schema / properties / templates / items / properties / header
      Added value: +{
      +  "description": "the template's text header, if any",
      +  "type": "string"
      +}
    • addedOutput schema / properties / templates / items / properties / rejected_reason
      Added value: +{
      +  "description": "for a REJECTED template, Meta's reason code (e.g. INVALID_FORMAT, TAG_CONTENT_MISMATCH); fix the template and create it again under a new name",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and idempotentHint=false. The description adds useful behavioral context beyond annotations: it explains returned review statuses, rejected_reason on rejected templates, and that templates only apply to Business numbers, not personal linked-device numbers.

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 purpose and status detail are front-loaded, and the later sentences carry useful downstream usage and scope-exclusion information. The second sentence is dense and could be split for readability, but no sentence is wasted.

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?

With a fully documented single parameter, read-only annotations, and an output schema, the description gives everything else an agent needs: what is listed, status meanings, downstream usage with wa_send_message, and the Business-number-only scope. Return-value details can safely live in the output schema.

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?

There is one parameter and schema description coverage is 100%; the schema already documents account_id as the Business account returned by wa_list_accounts. The description adds that the account must be a Business (Cloud API) number rather than a personal linked-device number, but this is not parameter-specific meaning beyond the schema baseline.

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 states a specific verb and resource: list WhatsApp Business message templates for a Business (Cloud API) number, including review status. It also distinguishes the resource from personal linked-device numbers, so an agent can tell what this tool is for.

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?

It gives clear usage context: use an APPROVED template's name and language with wa_send_message to message outside the 24-hour window, and pass the variables count as template_variables in order. It also excludes personal linked-device numbers, but it does not explicitly contrast this listing tool with siblings like wa_create_template or wa_delete_template.

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