Skip to main content
Glama

Update Webhook

update_webhook
Destructive

Change a webhook that an agent created: replace its rules, rename it, turn it on or off, or connect more repositories. rules replaces the whole list, so send every rule to keep (read them with list_webhooks). When repositories is set, the result includes setup with the secret and commands for them. If the events change (events_changed), update each connected repository's hook with the update_events command.

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": {
      "webhook_id": "<webhook_id>"
    },
    "name": "update_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoNew name shown to the user.
rulesNoRules, 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.
enabledNofalse stops delivery without deleting the webhook; true turns it back on.
webhook_idYesThe webhook_id from list_webhooks or create_webhook.
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
setupNo
webhookYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • 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.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description earns the flag by explaining that rules wholesale replaces the list, so an omitted rule is destroyed. It also discloses a post-call follow-up (update each connected repository's hook when events_changed) and that setting repositories returns a secret plus setup commands — real behavioral value 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?

Four front-loaded sentences with no filler; the destructive replace warning comes before the alternatives. The closing sentence about the update_events command is terser than the rest and slightly harder to act on.

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?

For a destructive 5-parameter mutation with full schema coverage and an output schema, this covers the key risks and the one cross-tool prerequisite. Auth/permissions requirements are the main unaddressed area.

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 baseline is 3, but the description adds replace-not-merge semantics for rules and the side effect of setting repositories, which the schema's per-field text does not make as clear. Omitting a parameter silently preserving the current value is only implied, not stated.

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 plus the exact operations ("replace its rules, rename it, turn it on or off, or connect more repositories"), which maps one-to-one onto the mutable parameters and clearly separates it from create_webhook/delete_webhook.

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 prerequisite for the risky path: read existing rules with list_webhooks before sending the full replacement list. It also explains the follow-up needed when events change, though it never states when to prefer create_webhook or delete_webhook over this tool.

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