Skip to main content
Glama
discord-mcp

discord-mcp

webhooks_delete_with_token

DestructiveIdempotent

Delete a Discord webhook using its token when only the token is available, with confirmation and dry-run safeguards for this irreversible action.

Instructions

Purpose: Delete a webhook using its token. DESTRUCTIVE - IRREVERSIBLE.

When to use: - Self-decommission when the agent only holds the token.

Auth: NO Authorization: Bot … header. No audit_reason (Discord ignores it on token routes).

Returns: {deleted, webhook_id}. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.

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>",
      "token": "<token>"
    },
    "name": "webhooks_delete_with_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesWebhook secret - treat as credential, do not log
__confirmNoSet true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned.
webhook_idYesWebhook to delete

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations, which only supply destructiveHint/idempotentHint/openWorldHint. The description adds irreversibility, the absence of an Authorization header requirement, that audit_reason is ignored on token routes, the exact return shape, and the two-part confirmation gate (__confirm plus MCP_DRY_RUN=false). The gating behavior is exactly the kind of operational context annotations cannot convey.

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?

Labeled sections (Purpose / When to use / Auth / Returns) with the destructive warning front-loaded, and every line carries distinct information. No filler or restatement of the schema.

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, credential-bearing tool, the definition covers risk, auth shape, confirmation mechanics, and return value. An output schema exists, so the Returns line is a bonus rather than a burden, and nothing an agent needs to call this safely is missing.

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%, including the credential handling note on token and the dry-run interaction on __confirm, so the schema already carries the parameter semantics. The description reinforces the __confirm/environment coupling but adds no new per-parameter meaning. Baseline 3 is appropriate.

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 (delete a webhook), names the mechanism used to identify it (its token), and flags the operation class (DESTRUCTIVE - IRREVERSIBLE) up front. An agent can distinguish this from the auth-based siblings such as webhooks_delete without opening the schema.

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?

Provides an explicit when-to-use condition: 'Self-decommission when the agent only holds the token.' This is a real selection criterion that separates it from bot-auth delete routes. It stops short of naming the alternative tool outright (e.g., 'use webhooks_delete when you have a Bot token'), so it is strong but not a full when/when-not matrix.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools