Skip to main content
Glama

Perpetuus CRM

List WhatsApp Templates

crm_list_whatsapp_templates
Read-onlyIdempotent

Lists official Meta templates or the local Light catalog (origin=local, status ACTIVE/DRAFT, usable) for one WhatsApp chat-channel channelId documentId. Use this canonical channel route before sending a template message or managing templates. Read-only; requires chat:read. Official templates are needed outside the 24-hour window. Light has no 24h restriction and local models are optional; only ACTIVE usable models may be sent. Common errors: passing a numeric inbox ID, a non-WhatsApp channel, or missing WABA credentials.

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": {
      "channelId": "<channelId>"
    },
    "name": "crm_list_whatsapp_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelIdYesChat-channel documentId, not chat inboxId. Discover it with crm_list_chat_channels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, but the description adds substantial context they cannot carry: the chat:read permission requirement, the 24-hour messaging window distinction between official and Light templates, the rule that only ACTIVE usable local models may be sent, and the optionality of local models. It also enumerates realistic failure modes (numeric inbox ID, non-WhatsApp channel, missing WABA credentials), which materially improves error anticipation.

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 with the verb and scope, then routes to usage, then constraints, then errors — a sensible order. It is dense and the middle sentences stack several semicolon-joined facts, but each clause carries distinct operational information rather than 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?

With no output schema, the description does the work of indicating what comes back: official Meta templates versus a local Light catalog filtered to ACTIVE/DRAFT and usable. For a single-parameter read tool this is close to sufficient; only pagination or result-shape details are absent, which is a minor gap.

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?

Schema coverage is 100% and already says 'not chat inboxId' plus how to discover the ID, so the description largely reinforces rather than introduces. It does add a genuine constraint beyond the schema: the channel must specifically be a WhatsApp channel, and passing a numeric inbox ID or a non-WhatsApp channel are flagged as common mistakes, which sharpens parameter selection.

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 (Lists) and two clearly named resources (official Meta templates, local Light catalog) scoped to one WhatsApp chat-channel documentId. The parenthetical filter semantics (origin=local, status ACTIVE/DRAFT, usable) let an agent distinguish this from generic template listing tools like crm_list_templates without opening a 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 a concrete trigger: 'Use this canonical channel route before sending a template message or managing templates,' which tells the agent this is the prerequisite step. It also explains the selection rule between the two catalogs (official needed outside the 24-hour window; Light has no 24h restriction). It stops short of naming a sibling to use instead when the channel is not WhatsApp, leaving that inference to the error list.

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.