Skip to main content
Glama

Add a webhook

add_webhook

Adds an HTTPS address CodeGene sends the chosen events to, signed under the Standard Webhooks spec (the webhook-id, webhook-timestamp and webhook-signature headers). The answer carries the endpoint's signing secret (whsec_...) exactly once: give it to the person to paste into the receiver at once, because it is never shown again. The address must be https:// and a public domain name. Send a test with send_webhook_test right after. Only owners and admins can add one.

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>",
      "events": "<events>",
      "reason": "<reason>"
    },
    "name": "add_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe receiver's https:// address, for example a Zapier or Make hook.
eventsYesThe events to send to it.
reasonYesWhy, in a sentence: kept in the workspace's activity.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 (which only say it is a non-destructive, open-world write) by disclosing the critical one-time secret return ("shown exactly once"), the URL validity constraints, and the signature header contract the receiver must verify. These are exactly the behaviors an agent cannot infer 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.

Conciseness5/5

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

Purpose is front-loaded in the first clause, then the highest-risk fact (one-time signing secret) follows immediately. Every sentence conveys an actionable constraint; the header-name parenthetical is dense but useful to the caller wiring up a receiver.

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?

No output schema exists, and the description compensates by describing the only meaningful return value (the whsec_ secret) and its irreversibility. Permissions, validation rules, and the follow-up test step are all present, so nothing needed to call this correctly is missing.

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 100%, so the baseline is 3; the description earns above that by adding the https:// plus public-domain constraint on `url` and the meaning of the secret in the response, neither of which the schema encodes. It does not expand on `events`, `reason`, or `workspace_id` beyond schema text.

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 concrete verb and resource ("Adds a webhook"), plus the exact payload scope: an HTTPS address receiving chosen events signed under Standard Webhooks. It is clearly distinguishable from siblings like rotate_webhook_secret or list_webhook_deliveries without opening another 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?

Gives a concrete next step ("Send a test with send_webhook_test right after") and a hard prerequisite ("Only owners and admins can add one"). It lacks explicit when-not guidance, e.g. when to reuse an existing webhook instead of adding a new one, but the context needed to proceed is clear.

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