Skip to main content
Glama
Upload-Post

Upload-Post

Official

Manage WhatsApp Flows

manage_whatsapp_flows
Destructive

Create, list, update, publish, deprecate, or delete WhatsApp Business chat forms for sign-ups, bookings, and surveys, including Flow JSON upload and validation previews.

Instructions

WhatsApp Flows (forms inside the chat: sign-ups, bookings, surveys) of the profile's WhatsApp Business account; send one with send_dm (platform 'whatsapp', flow { flow_id, cta }). list; create (name, categories from SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER; optional flow_json (object or string, up to 10 MB) and publish: true to publish at once, clone_flow_id, endpoint_uri); get (details, health, preview link); update (name, categories, endpoint_uri); get_json (assets with download_url); upload_json (flow_json; answers Meta's validation_errors); publish (every validation error fixed first); deprecate (a published Flow cannot be edited or deleted, only deprecated; confirm: true); delete (drafts only; confirm: true). WhatsApp is available to every account: the profile needs its WhatsApp Business number connected (get_connect_link with platforms ['whatsapp']), otherwise the API answers 400 with how to connect it; 401 whatsapp_reauth_required means reconnect it. Approval: only publish, deprecate and delete, not the other actions. Each of those needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user what will change, and repeat the call with confirmed: true only after they approve. Every other action runs at once and returns no preview, so check with the user before calling one that changes what they or others see.

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": {
      "action": "<action>",
      "user": "<user>"
    },
    "name": "manage_whatsapp_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNocreate / update.
userYesUpload-Post profile name with WhatsApp connected.
actionYes
paramsNoOther API fields for this action, with the REST API's own names (snake_case) and shapes. clone_flow_id, endpoint_uri. Leave out what you do not want to change.
confirmNodeprecate and delete: must be true, after the user approved it.
flow_idNoEvery action but list and create.
publishNocreate: publish it at once (needs flow_json).
confirmedNoSet to true only after the user has seen the preview this tool returns for an action that needs approval, and approved it. The other actions run without it.
flow_jsonNocreate / upload_json: the Flow JSON.
categoriesNocreate / update.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A4.9/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: publish/deprecate/delete require a preview-then-confirm flow, published Flows cannot be edited or deleted and can only be deprecated, delete is drafts-only, and publish requires every validation error fixed first. It also documents 400 connection errors and 401 whatsapp_reauth_required handling.

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?

The content is dense but appropriately sized for a nine-action tool with approval rules and prerequisites. It is front-loaded with the definition and action list, though the single long paragraph could be easier to scan if broken into clearer segments.

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?

Given the tool's complexity, multiple actions, nested params object, annotations, and output schema, the description covers the necessary usage context, approval workflow, prerequisites, and key error states. An agent has enough information to select and invoke the correct action safely.

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

Parameters5/5

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

Although schema coverage is already high at 90%, the description adds action-specific meaning: categories are listed as enumerated choices, flow_json can be an object or string up to 10 MB, publish requires flow_json, and confirmed applies only after a previewed approval action. This goes beyond the schema by explaining how parameters interact with each action.

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?

The description defines WhatsApp Flows concretely as forms inside the chat and enumerates the exact action set: list, create, get, update, get_json, upload_json, publish, deprecate, and delete. It also distinguishes sending a Flow from managing Flows by directing the agent to use send_dm for sending.

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?

It gives explicit routing guidance: use send_dm to send a Flow, use this tool for the listed management actions, and use get_connect_link when WhatsApp is not connected. It also gives precise conditions for the approval flow, including when to call with and without confirmed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools