Skip to main content
Glama
WapiSender MCP

WapiSender MCP

Official
by Wapi-Sender

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WAPISENDER_BASE_URLNoBase URL for a self-hosted WapiSender deployment. Used for both the CLI login and the MCP server process.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
loginA

Load saved credentials and connect to your WapiSender account. Auto-selects instance if you only have one.

logoutB

Clear the current WapiSender session.

list_instancesB

List all WhatsApp instances on your WapiSender account with their live status. Always fetches fresh data from the API.

switch_instanceA

Set the active instance by name or ID. All subsequent tool calls will use this instance.

refresh_instancesA

Re-fetch the instance list from the WapiSender API and update the session. Useful after adding a new instance without needing to re-login.

get_session_infoA

Return the current session state: whether you are logged in, which account, and which instance is active. Does not make any API calls.

get_instance_statusA

Refresh and return the current connection status and metadata of the active WhatsApp instance.

send_textA

Submit a WhatsApp text message. A successful response means the API accepted it, not that the recipient received it.

send_mediaB

Submit a WhatsApp media message (image, video, audio, or document) with an optional caption.

send_audioB

Submit a WhatsApp voice note from a public audio URL.

send_stickerB

Submit a WhatsApp sticker from a public image URL.

send_locationC

Send a WhatsApp location pin to a phone number.

send_buttonsB

Send a WhatsApp interactive button message. Renders up to 3 tappable buttons the recipient can reply with.

send_listB

Send a WhatsApp interactive list message. Shows a menu button that opens a scrollable list of options.

send_reactionC

React to a WhatsApp message with an emoji.

send_contact_cardB

Send a WhatsApp contact card (vCard). Shares a contact's name, phone number, and optional organization.

send_pollC

Send a WhatsApp poll with a question and multiple options.

send_bulk_textA

Send the same text message to multiple recipients and return a per-recipient result summary.

send_template_textC

Send personalized text messages by filling {{placeholders}} from per-recipient variables.

list_contactsC

List contacts on the active instance with optional search and pagination.

get_contactC

Get a single contact by phone number.

set_contact_block_statusB

Block or unblock a WhatsApp contact on the active instance.

list_flowsA

List all flows on the active instance with their status (active/draft).

get_flowB

Get the full definition and health status of a specific flow.

create_flowB

Create a new empty flow on the active instance.

update_flow_definitionA

Replace the full node+edge graph of an existing flow.

Node schema reference:

WapiSender Flow Node Types:

  • trigger: { type: "trigger", data: { match: "any"|"contains"|"exact"|"regex", keywords: string[] } }

  • send_message: { type: "send_message", data: { messageType: "text"|"image"|"video"|"document"|"audio"|"voice"|"buttons"|"list"|"location"|"poll"|"sticker", text?: string, mediaUrl?: string, audioUrl?: string, stickerUrl?: string } }

  • condition: { type: "condition", data: { source: "last_message"|"custom", variableName?: string, operator: "equals"|"contains"|"starts_with"|"ends_with"|"regex", value: string } } condition has two output handles: "true" and "false"

  • delay: { type: "delay", data: { amount: number, unit: "seconds"|"minutes"|"hours"|"days" } }

  • webhook: { type: "webhook", data: { method: "GET"|"POST"|"PUT"|"PATCH"|"DELETE", url: string, headers?: object, body?: string, responseVariable?: string } }

  • wait_for_reply: { type: "wait_for_reply", data: {} }

  • human_handoff: { type: "human_handoff", data: { message?: string, resumeAfterMinutes: number } }

  • ai_agent: { type: "ai_agent", data: { mode: "reply"|"router"|"extract", credentialId: string, provider: string, model: string, systemPrompt: string, promptTemplate: string, outputVariable: string } }

  • end: { type: "end", data: {} }

Edge format: { id: "e1", source: "nodeId", target: "nodeId", sourceHandle?: "true"|"false" } Positions: spread nodes with ~250px vertical spacing starting at { x: 250, y: 100 }

update_flow_nodeA

Edit a single node's configuration within an existing flow without touching other nodes.

generate_and_save_flowA

Generate a complete WhatsApp flow from a plain-English description and save it fully in one step.

INSTRUCTIONS FOR THE AI:

  1. Read the description and design the full node graph.

  2. Build the nodes[] and edges[] arrays using the schema below.

  3. Call this tool with name, description, triggerType, nodes, and edges — all in one shot.

  4. The tool will create the flow AND save the node graph atomically.

WapiSender Flow Node Types:

  • trigger: { type: "trigger", data: { match: "any"|"contains"|"exact"|"regex", keywords: string[] } }

  • send_message: { type: "send_message", data: { messageType: "text"|"image"|"video"|"document"|"audio"|"voice"|"buttons"|"list"|"location"|"poll"|"sticker", text?: string, mediaUrl?: string, audioUrl?: string, stickerUrl?: string } }

  • condition: { type: "condition", data: { source: "last_message"|"custom", variableName?: string, operator: "equals"|"contains"|"starts_with"|"ends_with"|"regex", value: string } } condition has two output handles: "true" and "false"

  • delay: { type: "delay", data: { amount: number, unit: "seconds"|"minutes"|"hours"|"days" } }

  • webhook: { type: "webhook", data: { method: "GET"|"POST"|"PUT"|"PATCH"|"DELETE", url: string, headers?: object, body?: string, responseVariable?: string } }

  • wait_for_reply: { type: "wait_for_reply", data: {} }

  • human_handoff: { type: "human_handoff", data: { message?: string, resumeAfterMinutes: number } }

  • ai_agent: { type: "ai_agent", data: { mode: "reply"|"router"|"extract", credentialId: string, provider: string, model: string, systemPrompt: string, promptTemplate: string, outputVariable: string } }

  • end: { type: "end", data: {} }

Edge format: { id: "e1", source: "nodeId", target: "nodeId", sourceHandle?: "true"|"false" } Positions: spread nodes with ~250px vertical spacing starting at { x: 250, y: 100 }

Example: "A support flow that greets the user, asks if they need sales or support, then routes accordingly" → trigger → send_message("Hello! Do you need Sales or Support?") → wait_for_reply → condition(reply contains "sales") → [true: end-sales, false: end-support]

rename_flowA

Rename an existing flow without touching its node graph or activation state.

activate_flowA

Enable a flow so it processes incoming WhatsApp messages. Runs a health check first.

deactivate_flowA

Disable a flow. Incoming messages will no longer be processed by it.

delete_flowB

Permanently delete a flow from the active instance. This cannot be undone.

clone_flowA

Duplicate an existing flow with a new name. The clone starts as inactive (draft) so you can edit it before activating.

simulate_flowA

Simulate an incoming message against the active instance and return the generated flow logs. Simulation does not send WhatsApp messages.

get_flow_logsA

Get recent execution logs for a flow on the active instance.

get_webhookB

Get the current webhook configuration for the active instance.

set_webhookC

Set the webhook URL and event subscriptions for the active instance.

Available events:

  • MESSAGES_UPSERT

  • MESSAGES_UPDATE

  • MESSAGE_RECEIPT_UPDATE

  • CONNECTION_UPDATE

  • QRCODE_UPDATED

  • CONTACTS_UPSERT

  • CONTACTS_UPDATE

  • PRESENCE_UPDATE

  • CHATS_UPSERT

  • GROUPS_UPSERT

  • GROUP_PARTICIPANTS_UPDATE

list_ai_credentialsA

List saved AI provider credentials for the active instance. API keys are masked.

add_ai_credentialA

Add a new AI provider credential for the active instance. The API key is encrypted server-side and never stored locally.

test_ai_credentialA

Send a live test ping to verify a saved AI credential works.

delete_ai_credentialC

Remove a saved AI provider credential from the active instance.

update_ai_credentialC

Update an AI credential, including its label, model, base URL, active state, or rotated API key.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 42 tools

Disambiguation4/5

Tool purposes are largely distinct by resource and action; the send_* variants map to different WhatsApp message types, and flow tools cleanly separate list/get/create/update/generate/activate/delete. Minor overlap remains between list_instances/refresh_instances and send_media vs send_audio, but descriptions clarify the distinctions.

Naming Consistency5/5

All names use snake_case and a predictable action_object convention such as send_text, list_flows, update_flow_node, and get_webhook. login/logout and generate_and_save_flow are small deviations but remain readable and consistent with the overall pattern.

Tool Count2/5

At 42 tools, the surface is far above the 3-15 well-scoped range and falls into 25+ territory. The tools are organized into coherent domains, but the overall count is large enough to burden tool selection and discovery.

Completeness4/5

Flow lifecycle, messaging types, webhook configuration, and AI credential CRUD plus testing are well covered. Contacts are read/block only and instance management lacks create/delete/QR-connect operations, leaving notable but workaround-able gaps.

Maintenance

ActivityStale
ResponsivenessNo recent community issues