Skip to main content
Glama

Create Webhook

create_webhook

Create an inbound webhook that turns GitHub or GitLab events into Push Notifications, Live Activities, and Lock Screen Widget values, following the rules you write. Call get_webhook_guide first for the provider, and list_webhooks to reuse an existing webhook. Returns the webhook and setup: the hook URL, a newly generated secret, the events to subscribe to, and a command per repository (gh api for GitHub, glab api for GitLab). Register the hook with those commands (the user needs admin or maintainer access), then check list_webhook_deliveries. Nothing reaches the iPhone until the service sends an event.

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

Input Schema

NameRequiredDescriptionDefault
labelYesName shown to the user, such as GitHub: acme/api CI.
rulesYesRules, at most 25. Each picks events, optionally filters them with a CEL `if`, and runs one action: push_notification, dismiss_push_notification, live_activity, or widget_metric. Call get_webhook_guide first for the format and examples.
providerNoThe service that sends the events: github or gitlab.github
repositoriesNoRepositories to connect now: GitHub owner/name or GitLab group/project (with any subgroups). The result includes the secret and a command for each. Leave out when none needs connecting.

Output Schema

NameRequiredDescriptionDefault
setupYes
webhookYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / provider / description
      Previous value: -"The service that sends the events. Only github for now; more services will use the same tools."New value: +"The service that sends the events: github or gitlab."
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "github"
      -]New value: +[
      +  "github",
      +  "gitlab"
      +]
    • changedInput schema / properties / repositories / description
      Previous value: -"owner/name repositories to connect now. The result includes the secret and a gh command for each. Leave out when no repository needs connecting."New value: +"Repositories to connect now: GitHub owner/name or GitLab group/project (with any subgroups). The result includes the secret and a command for each. Leave out when none needs connecting."
    • changedInput schema / properties / repositories / items / pattern
      Previous value: -"^[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"New value: +"^[A-Za-z0-9_.-]+(\\/[A-Za-z0-9_.-]+)+$"
    • changedInput schema / properties / rules / description
      Previous value: -"Rules, at most 25. Each picks GitHub events, optionally filters them with a CEL `if`, and runs one action: push_notification, dismiss_push_notification, live_activity, or widget_metric. Call get_webhook_guide first for the format and examples."New value: +"Rules, at most 25. Each picks events, optionally filters them with a CEL `if`, and runs one action: push_notification, dismiss_push_notification, live_activity, or widget_metric. Call get_webhook_guide first for the format and examples."
    • changedInput schema / properties / rules / items / properties / events / description
      Previous value: -"GitHub events this rule handles: an event (workflow_run) or event.action (workflow_run.completed)."New value: +"Events this rule handles: an event or event.action. GitHub: workflow_run or workflow_run.completed. GitLab: the object_kind with its action or status, such as pipeline.failed or merge_request.merge."
    • changedInput schema / properties / rules / items / properties / repositories / description
      Previous value: -"Optional owner/name repositories, or owner/* for an organization. Empty matches every repository."New value: +"Optional repositories (GitHub owner/name, GitLab group/project with any subgroups), or owner/* for everything under an owner or group. Empty matches every repository."
    • changedInput schema / properties / rules / items / properties / repositories / items / pattern
      Previous value: -"^[A-Za-z0-9_.-]+\\/(\\*|[A-Za-z0-9_.-]+)$"New value: +"^[A-Za-z0-9_.-]+(\\/[A-Za-z0-9_.-]+)*\\/(\\*|[A-Za-z0-9_.-]+)$"
  2. Added

TDQS

A4.8/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, closed-world write. The description goes well beyond that: it discloses the return payload (hook URL, a newly generated secret, event list, per-repository registration commands), the external access requirement, and the key behavioral caveat that nothing reaches the iPhone until an event is actually sent. That is exactly the kind of mutation and setup context annotations cannot carry.

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?

Front-loaded with purpose, then prerequisites, then return shape, then the end-to-end registration flow — a logical order with no filler sentences. It is dense, packing several distinct facts per sentence, which is efficient but slightly burdensome to parse on first read.

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 4-parameter, 25-rule mutation with an output schema, the description covers everything an agent needs: prerequisites, the return contents, the manual registration step, and the confirmation step. Nothing essential to correct invocation 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 description coverage is 100%, so baseline is 3; the description adds value by explaining that rules drive event selection, that provider choice determines whether gh api or glab api commands are emitted, and that the repositories parameter yields one command per repo. It stops short of adding syntax or validation hints beyond the schema, so it sits modestly above baseline.

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?

The opening sentence names a specific verb and resource ('Create an inbound webhook') and immediately states the effect: turning GitHub/GitLab events into Push Notifications, Live Activities, and widget values via user-written rules. It also positions itself against siblings by naming get_webhook_guide and list_webhooks as prerequisites, so an agent can tell it apart from update_webhook or preview_webhook_rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use guidance is given in sequence: call get_webhook_guide first for the provider, use list_webhooks if reusing an existing webhook, create here, then register the hook and verify with list_webhook_deliveries. The prerequisites (admin or maintainer access on the user's side) and the follow-up check are stated, leaving little to inference.

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