Skip to main content
Glama

Publish WhatsApp flow

publish_whatsapp_flow
Destructive

Publish a WhatsApp Flow draft: it is uploaded to Meta and becomes sendable to customers. Only a draft can be published, and only when the stored compliance report was run on the draft as it is now and carries no errors — so call check_whatsapp_flow first and fix what it reports. Publishing is not reversible: a published flow is retired with deprecate_whatsapp_flow, not edited.

Input Schema

NameRequiredDescriptionDefault
flow_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false; the description adds the consequential detail that publishing is not reversible and that a published flow is retired rather than edited. It also discloses the external upload to Meta, which is meaningful behavior beyond the annotation set.

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 tight sentences, front-loaded with the action and outcome, then precondition, then irreversibility. There is no filler or restatement of the name.

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 one-parameter mutation with no output schema, the description supplies everything needed: effect, precondition, the sibling to call first, and the lifecycle alternative. Nothing required to invoke it correctly is missing.

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 0% and the single parameter is only typed as an integer with minimum 1. The description constrains the target implicitly by insisting it must be a draft with a current, error-free compliance report, which adds real meaning, but it never states what flow_id refers to or how to obtain it.

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 (publish), the resource (WhatsApp Flow draft), and the concrete effect (uploaded to Meta, becomes sendable to customers). This clearly separates it from siblings like deprecate_whatsapp_flow, check_whatsapp_flow, and patch_whatsapp_flow_text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit preconditions: only a draft can be published, and only when the stored compliance report was run on the current draft and is error-free. It names check_whatsapp_flow as the prerequisite step and deprecate_whatsapp_flow as the alternative to editing.

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