Skip to main content
Glama
WapiSender MCP

WapiSender MCP

Official
by Wapi-Sender

set_webhook

Configure the webhook URL and event subscriptions for the active WhatsApp instance so incoming events are sent to your endpoint, with optional base64 media and enablement controls.

Instructions

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

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": {
      "url": "<url>"
    },
    "name": "set_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesWebhook endpoint URL
base64NoInclude media as base64 in webhook payloads
eventsNoEvent types to subscribe to. Omit to use an empty event list.
enabledNoEnable or disable the webhook
byEventsNoWhen true, WapiSender sends event-specific webhook payloads

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a mutation tool, yet it never states whether an existing webhook configuration is overwritten, whether omitting events clears subscriptions, or what happens to the endpoint on failure. The only behavioral context added is the 'active instance' scoping, which is genuinely useful but far short of what a write tool needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded, but roughly 80% of the text is a verbatim copy of the events enum already present in the schema, which is pure redundancy. No space is spent on the information that is actually missing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter mutation tool with no annotations and no output schema, the definition should cover replace-vs-merge semantics, required auth/session state, and confirmation of what the call returns or changes. None of that is present, so an agent knows what the tool is called but not the consequences of calling it.

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 100%, so url, base64, events, enabled, and byEvents are already documented in the schema, including the default values and the 'omit to use an empty event list' note. The description's eleven-line event list merely restates the schema enum and adds no syntax or interaction detail (e.g. how byEvents changes payload shape).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('Set the webhook URL and event subscriptions') and scopes it to 'the active instance', which an agent can distinguish from the read-only sibling get_webhook. It stops short of explicitly naming that sibling as the inspection counterpart, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing says this replaces any previously configured webhook, nothing points to get_webhook to read current settings first, and no prerequisites (login/session state) are stated. Usage must be inferred entirely from the verb.

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