Skip to main content
Glama

Set a webhook

set_webhook
Destructive

Send this site's form entries, paid orders and bookings to a URL as JSON POSTs, e.g. a Zapier or Make "catch hook", a Google Apps Script web app (to fill a Google Sheet) or the owner's own system. https only; up to 5 per site. Adding a URL returns its signing secret once: give it to the owner. The same URL again changes its events (rotate_secret: true makes a new secret); remove: true deletes it. Test entries from draft previews are never sent. Failed sends are retried for about a day.

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps:// address that receives the POSTs (or, with remove, the webhook id)
siteYesSite slug (e.g. "kopitiam-muar") or id
eventsNoDefault: all of record.created, order.paid, booking.created, booking.updated
removeNo
rotate_secretNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: https-only, max 5 per site, the signing secret is returned only once and must be handed to the owner, rotate_secret semantics, remove deletes, draft-preview test entries are never sent, and failed sends retry for about a day. This is exactly the operational context an agent needs for a destructive, open-world mutation.

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, with the core action first and edge cases (secret, rotate, remove, retries) after. It is a single long paragraph, so a little structure would help, but no sentence is wasted.

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

Completeness5/5

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

For a 5-parameter mutation tool with no output schema, the description covers limits, secret handling, deletion, event defaults and retry behavior. Nothing an agent needs to call it correctly is missing.

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 coverage is only 60%, and the description compensates: it explains that url doubles as the webhook id when removing, that events defaults to all four event types, and what rotate_secret and remove actually do. These are the two parameters with no schema description at all.

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?

States a specific verb and resource: sends form entries, paid orders and bookings to a URL as JSON POSTs, with concrete examples (Zapier, Make, Apps Script). An agent can distinguish this from test_webhook or other set_* tools 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?

Explains when to use it (forwarding entries to external systems) and the three modes: adding a URL, re-adding the same URL to change events, and remove: true to delete. It does not explicitly name test_webhook as the alternative for verifying delivery, which keeps it from a 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.

Resources