Skip to main content
Glama

whatsapp_webhook_set

Set (or remove) this WhatsApp install's outbound webhook. Owner/admin only.

  • To set: pass url (https only, not localhost). events is the list of subscribed events ("permissions") — e.g. ["whatsapp.message"], or ["whatsapp.*"] for every WhatsApp event, or [] / omit for ALL events. See available_events from whatsapp_webhook_get. include_result (default true) controls whether the tool result is included in tool.call payloads. secret is optional (reserved).

  • Subscribing to any whatsapp.* event makes the daemon hold a live connection per number and forward inbound messages to your URL.

  • Late messages (older than 15 min, or replayed from the offline queue after a reconnect) are NOT delivered by default, so a bot never answers old messages; pass deliver_late: true to receive them (payload carries offline and age_seconds).

  • To remove the webhook: pass remove: true (or an empty url).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "whatsapp_webhook_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
eventsNo
removeNo
secretNo
deliver_lateNo
include_resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / deliver_late
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the owner/admin permission requirement, the side effect that subscribing to whatsapp.* makes the daemon hold a live connection per number, and the non-obvious late-message suppression (15-minute threshold, offline-queue replays) with an opt-in flag and the payload fields it exposes. Annotations only give generic readOnly/destructive flags, so this narrative carries real value.

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-loads the one-line purpose, then uses bullets keyed to actions (set, subscribe side effects, late messages, remove). Dense but nearly all content is actionable; the only soft spot is 'secret is optional (reserved)', which conveys no usable instruction.

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?

A six-parameter mutation tool with no output schema and no useful annotations, and the description covers authentication, side effects, defaults, and removal. Minor gaps remain: it doesn't say whether a set call replaces existing subscriptions wholesale or merges them, nor what happens on a rejected url.

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?

Schema description coverage is 0%, so the description must carry all semantics, and it does: url constraints (https only, not localhost), events format with concrete examples (["whatsapp.message"], ["whatsapp.*"], [] / omit for all), include_result default of true, deliver_late opt-in behavior, secret marked optional/reserved, and remove as the deletion switch.

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?

Opens with a specific verb and resource: 'Set (or remove) this WhatsApp install's outbound webhook.' It also states the access constraint (owner/admin only) and implicitly separates itself from the read-only sibling by naming whatsapp_webhook_get only for event discovery.

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?

Explicitly branches by intent: 'To set: pass url...' and 'To remove the webhook: pass remove: true (or an empty url).' It points to whatsapp_webhook_get for available_events and states the default when events is omitted, leaving no ambiguity about which path to take.

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.