Skip to main content
Glama

Add a webhook endpoint

add_webhook

Creates a workspace HTTPS webhook. Requires manage. Use it for create_subscription. A taken name returns webhook_exists with its fullname. Use signingSecret to verify the webhook-signature header. The secret is shown only in this reply, and rotating it later with POST /api/resources/{fullname}/signing-secret replaces it for every receiver of that endpoint.

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

Input Schema

NameRequiredDescriptionDefault
urlYesHTTPS endpoint URL without username or password.
nameYesNew endpoint name in lowercase kebab case.

Output Schema

NameRequiredDescriptionDefault
webhookYes
workspaceYes
signingSecretYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare this is a non-read-only, non-destructive, non-idempotent write. The description goes well past that: the `manage` permission requirement, the specific error shape on a taken name, and the one-time-only visibility of the signing secret with the rotation endpoint that replaces it for every receiver. That is real behavioral context an agent cannot get from the 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?

Five short sentences, front-loaded with the action and permission, then error behavior, then secret handling. Dense and mostly earned, though 'Use it for create_subscription' is telegraphic and slightly opaque compared with the rest.

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?

With an output schema present, return values need less explanation, yet the description still covers the one thing the schema cannot: the signing secret is visible only in this reply. Permission, failure mode, and lifecycle are all addressed. Minor gap: nothing on whether URL validation failures or name format violations produce distinct errors.

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% – both `name` and `url` are already described in the schema, including the HTTPS-only constraint and kebab-case format. The description adds only the uniqueness semantics of `name` via the collision case; `signingSecret` is a response field from the output schema, not an input parameter, so it does not count as parameter guidance. Baseline 3.

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 with scope: 'Creates a workspace HTTPS webhook.' That distinguishes it from list_webhooks and remove_webhook, and the mention of create_subscription ties it to the flow it belongs in.

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?

'Use it for create_subscription' plus 'Requires `manage`' gives both the scenario and the prerequisite. It also states what a name collision returns (webhook_exists with its fullname), which is de facto guidance on the duplicate case. It stops short of naming an alternative tool for inspecting existing webhooks, so not 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.