Skip to main content
Glama

Register your webhook endpoint

set_webhook
Destructive

Point whatsapi.sh at an https URL and start receiving events there. The answer carries the signing secret ONCE, on first registration: keep it. Every delivery is signed with it in the x-whatsapi-signature header (t=<unix>,v1=<hmac-sha256 of "<t>.<body>">), and that signature is how you know a request is really from us. Calling this again updates the URL or the subscription and keeps the same secret unless you ask to rotate it. Saving also re-enables an endpoint we had disabled. Free.

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
urlYesWhere to POST events, e.g. https://api.yourapp.com/webhooks/whatsapp.
eventsNoWhich events to receive: message.created, message.sent, message.failed, message.status, number.connected, number.disconnected, number.logged_out, number.history_synced. Defaults to all of them.
rotateSecretNoMint a new signing secret and return it. The old one stops working.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) by disclosing the one-time secret return, the exact signature header name and construction format, secret persistence across updates, and the side effect of re-enabling disabled endpoints. This is the kind of operational detail an agent cannot get from structured fields.

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?

Dense but front-loaded: registration, then the critical secret warning and signature format, then re-call semantics. Nearly every sentence carries weight; the trailing "Free." is a small piece of noise that does not aid invocation.

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?

Covers the secret lifecycle, signature verification contract, update behavior, and the re-enable side effect — the things an agent most needs for a mutation tool with no output schema. It stops short of stating failure modes (must the URL be reachable? HTTPS-only?) or what happens to prior subscriptions when events is omitted.

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 cross-call meaning the schema lacks: the secret is returned only on first registration and survives subsequent updates unless rotation is requested. That persistence semantic genuinely helps an agent reason about rotateSecret rather than just reading its one-line schema note.

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?

"Point whatsapi.sh at an https URL and start receiving events there" states a specific verb (register/point) and resource (webhook endpoint). It is clearly the setter counterpart to get_webhook and test_webhook, though it never names those siblings to make the contrast explicit.

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?

Strong context on re-invocation: calling again updates the URL or subscription, keeps the existing secret unless rotation is requested, and re-enables a previously disabled endpoint. That tells an agent a lot about when re-calling is safe, but there is no explicit routing guidance pointing to test_webhook for verification or get_webhook for inspection.

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.

Resources