Skip to main content
Glama

Delete a webhook endpoint

delete_webhook
DestructiveIdempotent

IRREVERSIBLE: Delete a webhook endpoint

Removes an endpoint permanently. Deliveries stop at once and the signing secret is destroyed with the record, so this cannot be undone: registering the same URL again produces a new endpoint with a new secret. If you only want to pause deliveries, set isActive to false with a PATCH instead.

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": {
      "id": "<id>"
    },
    "name": "delete_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIdentifier of the endpoint.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Although annotations already declare destructiveHint=true and idempotentHint=true, the description adds substantive context the annotations cannot convey: deliveries stop immediately, the signing secret is destroyed with the record, and re-registering the same URL yields a new endpoint with a new secret. That last point is exactly the consequence an agent needs to warn a user about.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The irreversible warning is front-loaded as a labeled prefix, then the consequences, then the safer alternative — a well-ordered three-part structure with no filler sentences.

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 two-parameter destructive tool with a fully described schema, the description covers risk, side effects, reversibility, and the alternative path. With no output schema present, nothing about return values is owed.

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%, so both `id` and the non-obvious `confirm` handshake are already documented in the schema. The description adds no further parameter-level detail (it never mentions `confirm` or `id`), so the baseline 3 applies; it neither compensates for nor compounds the schema.

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 description opens with a specific verb and resource ("Delete a webhook endpoint") and immediately scopes it by naming the non-destructive sibling behavior ("If you only want to pause deliveries, set `isActive` to false with a PATCH instead"). An agent can distinguish this from create_webhook/update_webhook without inspecting either schema.

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?

It gives explicit when-to-use (permanent removal) and when-not-to-use (pausing deliveries) with the concrete alternative field and method to use instead. The schema's `confirm` parameter additionally enforces a two-step confirmation flow, so the routing guidance is complete rather than inferred.

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.