Skip to main content
Glama

Register a webhook endpoint

create_webhook

Register a webhook endpoint

Registers an HTTPS endpoint and subscribes it to the named events. The response contains a secret, and this is the only time it is ever returned: store it before you do anything else, because no endpoint anywhere in this API will show it to you again, and losing it means deleting the endpoint and registering a new one. The secret keys the HMAC-SHA256 signature sent with every delivery in the X-EchoCall-Signature header, which is how you prove a payload really came from us. Every name in events must be a name from GET /webhooks/events, or the literal * for all of them; an unknown name is rejected with 400 rather than silently never firing. The target URL is resolved and refused with 400 if it points at a private or internal address.

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": {
      "body": "<body>"
    },
    "name": "create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe destination URL, which must be publicly resolvable, and at least one event name to subscribe to.

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?

With annotations only declaring the mutation safety profile (readOnlyHint=false, idempotentHint=false, openWorldHint=false), the description carries the real behavioral burden: the `secret` is returned exactly once and unrecoverable, it keys an HMAC-SHA256 signature in the `X-EchoCall-Signature` header, unknown event names 400 rather than silently never firing, and private/internal URLs are refused. This is exactly the operational context an agent needs beyond the annotations.

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?

It is a single dense paragraph that front-loads purpose and then the critical secret-handling warning in the right order. There is mild redundancy in restating that the secret is never shown again and that losing it forces delete-and-recreate, but that emphasis is defensible for an unrecoverable credential. The open also echoes the title verbatim, which is wasted words.

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?

There is no output schema, and the description compensates by describing the response's `secret` field and its one-time nature. Nested-object parameters are covered, validation failures are enumerated, and the signing scheme is explained. An agent has everything needed to call it correctly and handle the result.

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% and the schema already documents `url` and `events`, so baseline would be 3. The description adds genuine meaning beyond it: the events array is constrained to names from GET /webhooks/events or `*`, and the URL is resolved and rejected with 400 if it points at a private or internal address — constraints the raw schema does not encode (no enums present).

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?

The description opens with a specific verb and resource ("Registers an HTTPS endpoint and subscribes it to the named events"), making it immediately distinguishable from update_webhook or delete_webhook by name and effect. It never explicitly names a sibling to contrast with, which keeps it just short of a 5.

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?

It gives a clear prerequisite workflow: event names must come from GET /webhooks/events or be the literal `*`, and unknown names are rejected with 400. It also warns that the target URL must be publicly resolvable. It stops short of explicitly stating when to use this versus update_webhook for modifying an existing subscription.

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.