Skip to main content
Glama

Delete Webhook

delete_webhook
Destructive

Delete an inbound webhook and its delivery history. GitHub or GitLab keeps sending to the old URL until the hook is removed there too (gh api repos/OWNER/NAME/hooks/HOOK_ID --method DELETE, or glab api projects/ID/hooks/HOOK_ID -X DELETE); those requests are ignored. Live Activities it started stay until they end. Confirm with the user first.

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": "delete_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
webhook_idYesThe webhook_id from list_webhooks or create_webhook.

Output Schema

NameRequiredDescriptionDefault
messageYes
successYes
public_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructive=true and readOnly=false, and the description adds substantial context on top: delivery history is destroyed, the remote provider keeps posting to the dead URL until removed there (with concrete gh/glab commands), those requests are ignored, and Live Activities it started persist until they end.

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 the core action and its side effect, then consequences, then the confirmation caution. The parenthetical CLI syntax is dense but actionable; a small amount of detail could be trimmed without loss.

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 destructive single-parameter tool with annotations and an output schema, the description covers the key unknowns: what gets destroyed, what survives, and the external cleanup required. Nothing material is missing for correct invocation.

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 description coverage is 100% and the single parameter already documents its origin ('from list_webhooks or create_webhook'). The description adds no further semantics about webhook_id, which is acceptable given the schema does the work.

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 scope: 'Delete an inbound webhook and its delivery history.' The mention of delivery history makes it distinguishable from a soft-disable or update operation, and the sibling delete_* tools target entirely different resources.

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 clear operational precondition ('Confirm with the user first') and explains the external step required on GitHub/GitLab. It does not explicitly compare against update_webhook or list_webhooks as alternatives, so it stops short of full when/when-not guidance.

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