configure_automod
Configure AutoMod heat settings, spam/caps/mentions/bad-words/anti-link/raid filters with ReDoS protection, whitelists, and optional Discord native AutoMod rule sync or deletion.
Overview
Configures AutoModConfig heat thresholds (clamped 50 to 150), modular chat filter suites, anti-raid panic/lockdown triggers, whitelisted roles/channels/categories/users, and optional Discord native AutoMod rules.
Every custom regular expression in badWords.regexes, regex: link rules, and Discord native regexPatterns passes strict linear-time ReDoS validation via isSafeRegexPattern. Deleting a Discord native AutoMod rule requires mcp:destructive and browser approval.
Permissions
- Required Scopes
- mcp:writeConditional: mcp:destructive (required when discordNativeRule.action is delete)
- Discord Role Access
- Real Admin or active Temp Admin.
- Server-Side Guard
- checkManageGuild + cross-guild channel check + ReDoS regex guard (+ browser approval on native delete)
- Subscription Tier
- Available on Free, Pro, and Enterprise.
Input Schema
JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.
{
"type": "object",
"properties": {
"guildId": {
"type": "string",
"pattern": "^\\d{17,22}$",
"description": "Discord server (guild) snowflake ID."
},
"mode": {
"type": "string",
"enum": [
"preview",
"apply"
],
"default": "apply",
"description": "Use preview to inspect validated diffs before writing, or apply to save."
},
"enabled": {
"type": "boolean",
"description": "Master toggle for AutoMod."
},
"notifyUser": {
"type": "boolean",
"description": "Notify members when a message is blocked by AutoMod."
},
"alertModerators": {
"type": "boolean",
"description": "Send AutoMod alerts to the log channel."
},
"logChannelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Discord channel ID for AutoMod alerts and logs."
},
"heat": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxHeat": {
"type": "number",
"minimum": 50,
"maximum": 150,
"description": "Heat ceiling before strike action triggers (clamped 50 to 150)."
},
"decayRatePerSec": {
"type": "number",
"minimum": 1,
"maximum": 50
},
"heatReset": {
"type": "boolean"
},
"regularStrikeDurationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
},
"capStrikeDurationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 10080
},
"enableMultiplier": {
"type": "boolean"
},
"multiplierPercentage": {
"type": "integer",
"minimum": 100,
"maximum": 500
},
"panicMode": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"triggerRaidersCount": {
"type": "integer",
"minimum": 2,
"maximum": 50
},
"windowSeconds": {
"type": "integer",
"minimum": 2,
"maximum": 120
},
"panicDurationMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 120
}
},
"additionalProperties": false,
"description": "Anti-raid panic mode settings."
},
"autoLockdown": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"mentionThreshold": {
"type": "integer",
"minimum": 5,
"maximum": 500
},
"windowSeconds": {
"type": "integer",
"minimum": 5,
"maximum": 300
}
},
"additionalProperties": false,
"description": "Mass-mention raid auto-lockdown thresholds."
}
},
"additionalProperties": false,
"description": "Heat accumulation, decay, and raid panic/auto-lockdown settings."
},
"filters": {
"type": "object",
"properties": {
"antiSpam": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxMessages": {
"type": "integer",
"minimum": 2,
"maximum": 50
},
"windowSeconds": {
"type": "integer",
"minimum": 1,
"maximum": 60
},
"crossChannelEnabled": {
"type": "boolean"
},
"maxChannels": {
"type": "integer",
"minimum": 2,
"maximum": 20
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"repeatedMessages": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxRepeats": {
"type": "integer",
"minimum": 2,
"maximum": 20
},
"windowSeconds": {
"type": "integer",
"minimum": 2,
"maximum": 120
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"antiInvite": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"allowedInvites": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"maxItems": 100
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"antiLink": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"allowedDomains": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"maxItems": 500
},
"blockedDomains": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"maxItems": 1000
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"badWords": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"words": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"maxItems": 1000
},
"regexes": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"maxItems": 100
},
"allowedPatterns": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"maxItems": 500
},
"requireSpaces": {
"type": "boolean"
},
"ignoreCapitalization": {
"type": "boolean"
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"antiMention": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxMentions": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"blockMassPings": {
"type": "boolean"
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"caps": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"minChars": {
"type": "integer",
"minimum": 3,
"maximum": 200
},
"maxPercentage": {
"type": "integer",
"minimum": 30,
"maximum": 100
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"emojis": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxEmojis": {
"type": "integer",
"minimum": 2,
"maximum": 100
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"newlines": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxNewlines": {
"type": "integer",
"minimum": 2,
"maximum": 100
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"zalgo": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"action": {
"type": "string",
"enum": [
"delete",
"warn",
"delete_and_warn",
"timeout",
"delete_and_timeout",
"delete_warn_and_timeout",
"timeout_and_warn",
"kick",
"ban",
"log"
]
},
"timeoutSeconds": {
"type": "integer",
"minimum": 10,
"maximum": 2419200
}
},
"additionalProperties": false
},
"blockDangerousFiles": {
"type": "boolean"
},
"mediaOnlyChannels": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 100,
"description": "Channel IDs restricted to media attachments only."
}
},
"additionalProperties": false,
"description": "AutoMod filter suites (spam, invites, links, badWords with ReDoS check, mentions, caps, emojis, newlines, zalgo, media-only)."
},
"whitelist": {
"type": "object",
"properties": {
"roleIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 100
},
"channelIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 100
},
"categoryIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 50
},
"userIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 100
}
},
"additionalProperties": false,
"description": "Roles, channels, categories, and users exempt from AutoMod."
},
"discordNativeRule": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"upsert",
"sync_exemptions",
"delete"
],
"description": "Operation on Discord native AutoMod rules. delete requires mcp:destructive and browser approval."
},
"ruleId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Target Discord native AutoMod rule ID (required for delete)."
},
"upsertByName": {
"type": "boolean",
"description": "For custom keyword rules (triggerType 1), update an existing rule matching name if found."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Rule name (required when creating a new rule)."
},
"enabled": {
"type": "boolean",
"description": "Whether the native Discord rule is enabled."
},
"triggerType": {
"type": "number",
"enum": [
1,
3,
4,
5,
6
],
"description": "1=Keyword, 3=Spam, 4=Keyword Preset, 5=Mention Spam, 6=Member Profile."
},
"triggerMetadata": {
"type": "object",
"properties": {
"keywordFilter": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"maxItems": 1000
},
"regexPatterns": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 260
},
"maxItems": 10
},
"allowList": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"maxItems": 1000
},
"presets": {
"type": "array",
"items": {
"type": "number",
"enum": [
1,
2,
3
]
},
"maxItems": 3,
"description": "1=Profanity, 2=Sexual Content, 3=Slurs."
},
"mentionTotalLimit": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"mentionRaidProtectionEnabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"actions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "number",
"enum": [
1,
2,
3,
4
],
"description": "1=Block Message, 2=Send Alert Message, 3=Timeout, 4=Block Member Interaction."
},
"metadata": {
"type": "object",
"properties": {
"customMessage": {
"type": "string",
"maxLength": 150,
"description": "Custom block message shown to users."
},
"channelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Alert channel ID for action type 2."
},
"durationSeconds": {
"type": "integer",
"minimum": 60,
"maximum": 2419200,
"description": "Timeout duration in seconds for action type 3 (60 to 2419200)."
}
},
"additionalProperties": false
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 4
},
"exemptRoleIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 20,
"description": "Up to 20 exempt role IDs."
},
"exemptChannelIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 50,
"description": "Up to 50 exempt channel IDs."
}
},
"required": [
"action"
],
"additionalProperties": false,
"description": "Optional native Discord AutoMod rule upsert, exemption sync, or deletion."
},
"planId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Preview planId required when applying a destructive Discord native rule deletion."
},
"confirmationToken": {
"type": "string",
"minLength": 8,
"maxLength": 256,
"description": "Single-use confirmationToken returned by preview mode for destructive rule deletion."
}
},
"required": [
"guildId"
],
"additionalProperties": false
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| guildId | string | Required | Discord server (guild) snowflake ID. |
| mode | string | Optional (apply) | Use preview to inspect validated diffs before writing, or apply to save. Allowed: preview | apply |
| enabled | boolean | Optional | Master toggle for AutoMod. |
| notifyUser | boolean | Optional | Notify members when a message is blocked by AutoMod. |
| alertModerators | boolean | Optional | Send AutoMod alerts to the log channel. |
| logChannelId | string | null | Optional | Discord channel ID for AutoMod alerts and logs. |
| heat | object | Optional | Heat accumulation, decay, and raid panic/auto-lockdown settings. |
| filters | object | Optional | AutoMod filter suites (spam, invites, links, badWords with ReDoS check, mentions, caps, emojis, newlines, zalgo, media-only). |
| whitelist | object | Optional | Roles, channels, categories, and users exempt from AutoMod. |
| discordNativeRule | object | Optional | Optional native Discord AutoMod rule upsert, exemption sync, or deletion. |
| planId | string | Optional | Preview planId required when applying a destructive Discord native rule deletion. |
| confirmationToken | string | Optional | Single-use confirmationToken returned by preview mode for destructive rule deletion. |
Example
Preview enabling anti-invite, mention spam protection, and calibrated heat settings.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "configure_automod",
"arguments": {
"guildId": "1200000000000000000",
"mode": "preview",
"enabled": true,
"logChannelId": "1200000000000000011",
"heat": {
"enabled": true,
"maxHeat": 100
},
"filters": {
"antiInvite": {
"enabled": true,
"action": "delete_and_warn"
},
"antiMention": {
"enabled": true,
"maxMentions": 5
}
}
}
}
}Response
Validated AutoMod diff, regex safety count, or applied configuration.
{
"mode": "preview",
"valid": true,
"guildId": "1200000000000000000",
"regexCheckedCount": 0,
"requiresHumanApproval": false,
"changes": [
{
"tool": "configure_automod",
"module": "automod",
"field": "filters",
"before": {},
"after": {
"antiInvite": {
"enabled": true,
"action": "delete_and_warn"
}
}
}
]
}Errors
| Error Code | Condition | Resolution |
|---|---|---|
| UNAUTHORIZED | Missing, expired, or revoked Bearer access token or scoped Personal Access Token. | Re-authenticate through OAuth 2.1 or create a fresh token in https://mcp.taicket.xyz/account. |
| FORBIDDEN | Token lacks the required OAuth scope, the guild is outside allowedGuildIds, or caller lacks live Discord RBAC permissions. | Grant the required scope during consent or confirm your Discord server role permissions. |
| RATE_LIMITED | Caller exceeded the per-user sliding-window request limit. | Wait for the Retry-After window before issuing another request. |
| VALIDATION_ERROR | Input arguments failed Zod schema validation or contained invalid Discord snowflakes. | Inspect the parameter schema and supply valid Discord snowflake IDs and field types. |
| CROSS_GUILD_RESOURCE | A referenced channel, category, or role does not belong to the specified guildId. | Call get_server_topology for the target server and reference only resources returned for that guild. |
| HUMAN_APPROVAL_REQUIRED | Destructive deletion or structural Discord setup requires browser-verified human approval before execution. | Run with mode="preview" (or preview_setup), open the returned approvalUrl in a browser signed into Discord, approve the summary, then apply the plan with confirmationToken. |
| CONFIRMATION_REQUIRED | confirmed was false or missing, confirmationToken was invalid, or planId has expired past its 15-minute TTL. | Confirm the plan with the server manager or generate a fresh preview via preview_setup. |
| NOT_FOUND | The requested panel, item, command, or setup plan was not found for this server. | Inspect current resources with get_server_configuration and supply a valid ID. |
| DISCORD_API_ERROR | Discord REST API returned an error or the Taicket bot is not in the target server. | Confirm Taicket is installed in the server via get_discord_servers and retry. |
Behavior
- Clamps heat.maxHeat strictly between 50 and 150.
- Rejects unsafe or nested-quantifier regex patterns with VALIDATION_ERROR before saving.
- Verifies logChannelId, mediaOnlyChannels, whitelist channels/categories, and native alert channels belong to guildId.
- Deleting a native Discord AutoMod rule requires mcp:destructive scope and verified browser confirmation via /oauth/approve-action.