Skip to main content
Glama

WhatsApp Business API by Wassenger

manage_whatsapp_pipelines

Comprehensive sales pipeline management tool for the WhatsApp sales funnel (CRM). A pipeline is a sales board: an ordered list of stages that deals move through, optionally fed by specific WhatsApp numbers. Use it to set up sales boards, inspect their configuration and read their headline numbers.

Available actions:

  • list: Retrieve all sales pipelines of the account, optionally only those fed by one device

  • get: Retrieve a single pipeline with its full stage configuration

  • create: Create a new pipeline with stages, lost reasons and behaviour settings

  • update: Update pipeline properties, stages, lost reasons or settings

  • delete: Remove a pipeline (refused with 409 while it still holds open deals)

  • summary: Per-stage deal counts and open amount totals for the board, plus won and lost totals for the last 30 days

Stage ordering matters: a pipeline requires at least one open, one won and one lost stage, and the won and lost stages must come AFTER all the open ones, because a deal advances to the next open stage by position. When no stages are supplied on create, a sensible default ladder is seeded.

A pipeline never turns chats into deals on its own, and a chat label never moves a deal: deals are created one by one (manage_whatsapp_deals) or from an AI proposal a person accepts. To label or assign the chat when a deal enters a stage, use that stage's actions.

Note: the sales funnel is available on the Platform Professional subscription and above. Write operations answer 403 on a plan without it, while reads stay available so an account that downgrades keeps access to its funnel data.

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>"
    },
    "name": "manage_whatsapp_pipelines"
  }
}

Input Schema

NameRequiredDescriptionDefault
iconNoPipeline icon identifier. Defaults to funnel-dollar
nameNoPipeline name (required for create action)
colorNoPipeline color name used for quick identification
actionYesAction to perform on WhatsApp sales pipelines
deviceNoWhatsApp device ID: only return pipelines fed by this device (for list action)
stagesNoPipeline stages, in order. At least one open, one won and one lost stage are required, and the won and lost stages must come after all the open ones. On update, send every stored stage with the id that get returned: a stage without its id is a new stage and keeps none of the stored one's settings
devicesNoWhatsApp device IDs that feed this pipeline. An empty array means all the account devices
currencyNoISO 4217 currency code for deal amounts. Defaults to the account currency; on update, pass null to clear it back to that default
settingsNoPipeline behaviour settings
pipelineIdNoPipeline ID (required for get, update, delete and summary actions)
descriptionNoPipeline description
lostReasonsNoPreset lost reasons offered when a deal is lost
confirmDeletionNoConfirm pipeline deletion (required for delete action)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / entry
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Entry rule configuration: how chats enter this pipeline",
      -  "properties": {
      -    "filters": {
      -      "additionalProperties": false,
      -      "description": "Entry filters, only used when mode is filter",
      -      "properties": {
      -        "labels": {
      -          "description": "Chat labels that make a chat enter the pipeline",
      -          "items": {
      -            "maxLength": 40,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "maxItems": 20,
      -          "type": "array"
      -        },
      -        "type": {
      -          "description": "Chat types that make a chat enter the pipeline",
      -          "items": {
      -            "enum": [
      -              "chat",
      -              "group",
      -              "channel",
      -              "broadcast"
      -            ],
      -            "type": "string"
      -          },
      -          "maxItems": 4,
      -          "type": "array"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "mode": {
      -      "description": "How chats enter this pipeline: manual, filter or all",
      -      "enum": [
      -        "manual",
      -        "filter",
      -        "all"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedInput schema / properties / stages / description
      Previous value: -"Pipeline stages, in order. At least one open, one won and one lost stage are required, and the won and lost stages must come after all the open ones"New value: +"Pipeline stages, in order. At least one open, one won and one lost stage are required, and the won and lost stages must come after all the open ones. On update, send every stored stage with the id that get returned: a stage without its id is a new stage and keeps none of the stored one's settings"
    • removedInput schema / properties / stages / items / properties / labelMap
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 40,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Chat label name mapped to this stage"
      -}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: deletion is refused with 409 while open deals exist, confirmDeletion is required, write operations return 403 without the Platform Professional plan while reads stay available after downgrade, and default stages are seeded when none are supplied. It also discloses that update merges by stage id and that the pipeline itself never converts chats into deals, which are exactly the behavioral facts an agent needs.

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 concept definition, then a scannable action list, then constraints and the subscription note. Every block is useful, though the stage-ordering rule is stated twice (prose and again in the schema's stages description) and the closing note is slightly verbose. Minor redundancy, no 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?

For a 13-parameter tool with nested stage/settings objects, no annotations and no output schema, the description covers purpose, action semantics, validation constraints, defaults, error behavior, plan gating and related tools. The remaining gap is response shape for list/get beyond 'full stage configuration' and 'headline numbers', which an agent may want when composing follow-up calls.

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 already 100%, so the baseline is 3, but the description adds meaning the schema does not: the rationale that won/lost stages must follow open ones 'because a deal advances to the next open stage by position', and the create-time default ladder when no stages are passed. It also reinforces that device scoping applies to list only. These additions go beyond restating the schema.

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 names a specific resource (WhatsApp sales pipelines / CRM sales boards) and defines it in operational terms ('an ordered list of stages that deals move through, optionally fed by specific WhatsApp numbers'), then enumerates all six actions with what each returns or changes. It explicitly separates the tool from manage_whatsapp_deals, so an agent can distinguish it from siblings without opening 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?

It states the intended purposes ('set up sales boards, inspect their configuration and read their headline numbers') and routes adjacent work elsewhere, noting that deals are created via manage_whatsapp_deals or from an accepted AI proposal and that stage-level actions handle labeling/assignment. Per-action guidance distinguishes list from get. It stops short of an explicit when-not-to-use statement for the read actions, which keeps it at 4 rather than 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.