Skip to main content
Glama
discord-mcp

discord-mcp

automod_delete_rule

DestructiveIdempotent

Permanently delete an obsolete Discord AutoMod rule by guild and rule ID, with confirmation required to authorize the irreversible removal. Use for cleanup, not temporary disabling.

Instructions

Purpose: Delete an AutoMod rule. DESTRUCTIVE - IRREVERSIBLE.

When to use: - Permanently remove an obsolete rule.

When NOT to use: - Temporarily disable → use automod_modify_rule with enabled:false.

Returns: {deleted, rule_id, guild_id}.

Security: gated by ConfirmRequired. 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": {
      "guild_id": "<guild_id>",
      "rule_id": "<rule_id>"
    },
    "name": "automod_delete_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYesRule to delete (IRREVERSIBLE)
guild_idYesGuild containing the rule
__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.
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds operational context they cannot express: the ConfirmRequired gate, the requirement to pass `__confirm:true` AND have `MCP_DRY_RUN=false`, and the fact that otherwise a DRY_RUN_PREVIEW is returned. That precondition is exactly the kind of behavior an agent needs before attempting a destructive call.

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, When NOT to use, Returns, Security) keep the destructive warning and the gating requirement front-loaded. Every line carries actionable information and there is no filler.

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, gated mutation, the definition covers risk, alternative routing, return shape, and the confirmation/dry-run mechanics. An output schema exists, making the 'Returns' line slightly redundant but harmless; 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%, so the parameters are already documented, and the description's mention of `__confirm:true` and `MCP_DRY_RUN=false` restates what the schema's `__confirm` description says verbatim. It adds no new meaning for `audit_reason` or the ID patterns, so baseline 3 applies.

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 an AutoMod rule') and immediately scopes it with '**DESTRUCTIVE - IRREVERSIBLE.**' The sibling list contains automod_get_rule, automod_list_rules, automod_create_rule and automod_modify_rule, and the description makes clear this is the removal path rather than any of those.

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?

Provides an explicit 'When to use' (permanently remove an obsolete rule) and an explicit 'When NOT to use' that names the alternative tool and the exact parameter setting (`automod_modify_rule` with `enabled:false`). The routing decision is fully determined without opening another schema.

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