Skip to main content
Glama

List a WhatsApp number's templates

list_whatsapp_templates
Read-onlyIdempotent

List a WhatsApp number's templates

Every template of one of the agent's WhatsApp numbers, read live from Meta, whatever its status: one item per language version, sorted by name, then language. Only approved templates can be sent. Each item says what POST /v1/whatsapp/templates must fill in: the body and header parameter keys in order, the header's format, and each button's index and the field that carries its value. It lists up to 100 templates.

Because it calls Meta every time, this endpoint allows 10 requests a minute per key, counted apart from your other calls: keep the list, and read it again after your templates change. A connection that isn't a WhatsApp number is 404 not_found; a disconnected one is 409 connection_inactive, and one whose access Meta withdrew is 409 connection_needs_reconnection (reconnect it in the dashboard; retrying won't help). When Meta doesn't return the templates (an outage, a timeout or its own rate limit), the call is 503 meta_unavailable: retry with backoff.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.
connection_idYesA connection of the agent. Another agent's connection is `404 not_found`.

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?

Annotations cover the safety profile (readOnly, idempotent, non-destructive), and the description layers on substantial behavior the annotations cannot express: a 10 req/min per-key rate limit counted separately from other calls, caching advice, and precise failure semantics — 404 not_found for a non-WhatsApp connection, 409 connection_inactive, 409 connection_needs_reconnection (retry won't help), and 503 meta_unavailable with retry-with-backoff. It also explains the per-item payload shape for building a later POST.

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?

Front-loaded and dense with useful detail — scope first, then payload shape, then rate limit, then error taxonomy. The only waste is the opening line, which merely restates the tool title verbatim before the real content begins.

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?

No output schema exists, and the description compensates by describing the return contents in detail: one item per language version, sorted, up to 100 items, each carrying body/header parameter keys in order, header format, and button index/value field. Combined with the complete error taxonomy, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are fully described in the schema (100% coverage), so the baseline is a 3. The description adds meaning beyond the schema by tying `connection_id` to the concept of 'one of the agent's WhatsApp numbers' and by restating the 404 case for a connection that isn't a WhatsApp number in the tool's own semantic frame.

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 (list every template of one of the agent's WhatsApp numbers), plus scope details that separate it from siblings: live read from Meta, one item per language version, sorted by name then language, capped at 100. An agent can distinguish it from send_whatsapp_template or get_whatsapp_message_status without opening any schema.

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 clear operational context: templates are read live from Meta, so 'keep the list, and read it again after your templates change,' and only `approved` templates can be sent (implying send_whatsapp_template is the routing target). It does not explicitly name any sibling tool as an alternative, so it stops short of full when/when-not routing.

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