Skip to main content
Glama

delete_whatsapp_template

Destructive

Delete one WhatsApp message template, in one language, from a WhatsApp Business API number. It works in two steps: called without a confirmToken it only reports which template would be deleted and returns a token, writing nothing; the deletion happens on a second call carrying that token, after the user approved it. It never deletes more than the template it reported, and it asks which language when the name exists in several.

Input Schema

NameRequiredDescriptionDefault
nameNoName of the template to delete
deviceNoWhatsApp Business API device ID (24 hex characters) that owns the template
languageNoLanguage code of the template to delete, e.g. es or en_US. Required when the name exists in several languages.
confirmTokenNoToken returned with the confirmation. Pass it only after the user approved deleting that exact template.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known, yet the description adds the crucial detail that the first invocation writes nothing and returns a token requiring user approval. It also bounds the blast radius ('never deletes more than the template it reported') and discloses the disambiguation behavior for multi-language names — real behavioral value beyond the annotations.

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?

Three sentences, front-loaded with the scope and then the safety protocol; minimal waste. Slight overlap between 'it works in two steps' and the following sentence explaining the same flow prevents a 5.

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 destructive, no-output-schema tool, the description covers scope, the confirmation protocol, and the response of the preview call (which template would be deleted plus a token). It leaves out permission/error conditions (e.g., what happens with an invalid or expired token), which a fully complete definition would mention.

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%, so the schema already documents all four parameters; the baseline is 3. The description nonetheless adds meaning the schema only implies: confirmToken's role as the second-step gate and the rule that language becomes necessary when the name exists in several languages. This earns a bump above 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?

States a specific verb (delete) and a precisely scoped resource: one WhatsApp template, in one language, on one WhatsApp Business API number. This distinguishes it clearly from list_whatsapp_templates, create_whatsapp_template, and delete_whatsapp_file without needing the 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?

The two-step protocol gives strong operational guidance: first call without confirmToken merely previews, second call with the token performs the deletion. It also states the condition that triggers language resolution. It stops short of naming alternatives (e.g., use list_whatsapp_templates to find the exact name/language first), which would have made it a 5.

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