automod_delete_rule
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
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | Rule to delete (IRREVERSIBLE) | |
| guild_id | Yes | Guild containing the rule | |
| __confirm | No | Set 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_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||