Skip to main content
Glama

Delete a template

flow_delete_template
Destructive

Deletes a template for good (ids from flow_list_templates). A template any campaign uses, drafts and sent ones included, cannot be deleted, nor an SMS template in review. A WhatsApp template is deleted at Meta too, which keeps its name taken for 30 days.

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": {
      "channel": "<channel>",
      "id": "<id>"
    },
    "name": "flow_delete_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
channelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is covered. The description earns credit for adding behavior beyond that: the deletion is permanent, campaign-referenced and in-review SMS templates are refused, and WhatsApp deletion propagates to Meta with a 30-day name lockout. It does not say what a successful or refused call returns, but that is a minor gap against already-rich annotations.

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 tightly packed sentences with no filler; the permanence warning is front-loaded, followed by blocking conditions, then the channel-specific side effect. Every clause carries information the agent needs before calling a destructive tool.

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?

For a destructive, non-idempotent delete with no output schema and three parameters, the description covers permanence, preconditions that cause refusal, and downstream effects on the WhatsApp/Meta side. Combined with the schema's brandId note, an agent has what it needs to decide and call correctly.

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 only 33%; brandId is documented in the schema but id and channel are not. The description compensates partially by identifying where ids come from (flow_list_templates) and by explaining channel-specific behavior for WHATSAPP (Meta-level deletion, name retention) and SMS (in-review block). VIBER and the brand-switching refusal rule are not addressed.

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 ('Deletes a template') and immediately qualifies permanence ('for good'), which separates it from reversible operations like flow_withdraw_template or flow_update_template. The parenthetical pointing to flow_list_templates as the id source further pins down its role.

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?

Explicit when-not conditions are given: templates used by any campaign (drafts and sent included) and SMS templates in review cannot be deleted. It also directs the agent to flow_list_templates for ids. It stops short of naming a fallback action for the blocked cases, so it is strong but not fully prescriptive.

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