Moderation & Securitymcp:write

configure_moderation

Configure ModerationConfig roles, log channels, evidence timers, double-action guard, member reports, trial staff alerts, per-command overrides, and appeal form settings.

readOnlyHint: falseidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Configures standard server moderation infrastructure in ModerationConfig including moderator and protected roles, mute role, audit log channels, evidence locker timer, double-action guard, member reporting, trial staff alerts, action logging toggles, per-command permission locks, and member appeal form questions.

Live member operations such as unbanning or pardoning cases and approving or denying infraction appeals remain strictly dashboard-only on https://taicket.xyz or Discord commands.

Permissions

Required Scopes
mcp:write
Discord Role Access
Real Admin or active Temp Admin.
Server-Side Guard
checkManageGuild + cross-guild channel validation + role verification
Subscription Tier
Available on Free, Pro, and Enterprise.

Dashboard-only security boundaries

Cannot unban, pardon, edit, or delete live moderation cases. Cannot approve, deny, or block member infraction appeals.

Input Schema

JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.

configure_moderation.inputSchema.jsonjson
{
  "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": "Enable or disable the Moderation Suite."
    },
    "modRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 50,
      "description": "Discord role IDs authorized to run moderation commands."
    },
    "protectedRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 50,
      "description": "Discord role IDs shielded from moderation actions (synced with immuneRoleIds)."
    },
    "immuneRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 50,
      "description": "Alias for protectedRoleIds; both fields are stored in sync."
    },
    "muteRoleId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Non-managed, delegation-safe guild role used for text mutes (null clears it)."
    },
    "logChannelId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Channel ID where moderation audit logs are posted."
    },
    "appealChannelId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Channel ID where incoming member appeals are posted."
    },
    "appealsEnabled": {
      "type": "boolean",
      "description": "Enable or disable the member infraction appeals portal."
    },
    "allowBanAppeals": {
      "type": "boolean",
      "description": "Allow banned members to submit appeals."
    },
    "allowMuteAppeals": {
      "type": "boolean",
      "description": "Allow muted members to submit appeals."
    },
    "appealWaitingPeriodHours": {
      "type": "integer",
      "minimum": 0,
      "maximum": 8760,
      "description": "Hours a punished member must wait before submitting an appeal."
    },
    "rejoinInviteUrl": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional Discord invite URL sent when a ban appeal is approved."
    },
    "appealReviewerRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 30,
      "description": "Role IDs notified or authorized to review moderation appeals."
    },
    "autoUnbanOnApproval": {
      "type": "boolean",
      "description": "Automatically unban the member when staff approve an appeal on the dashboard."
    },
    "sendInviteOnApproval": {
      "type": "boolean",
      "description": "Automatically DM the server invite URL when a ban appeal is approved."
    },
    "appealCooldownDays": {
      "type": "integer",
      "minimum": 0,
      "maximum": 365,
      "description": "Days between repeat appeal submissions after a denial."
    },
    "appealQuestions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Optional stable question identifier."
          },
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300,
            "description": "Question text displayed on the appeal form."
          },
          "type": {
            "type": "string",
            "enum": [
              "short",
              "long"
            ],
            "default": "long",
            "description": "Expected answer input length."
          },
          "required": {
            "type": "boolean",
            "default": true,
            "description": "Whether the appellant must answer this question."
          }
        },
        "required": [
          "question"
        ],
        "additionalProperties": false
      },
      "maxItems": 15,
      "description": "Custom questions shown on the member appeal form."
    },
    "dmOnInfraction": {
      "type": "boolean",
      "description": "Send a DM notice to members when moderated."
    },
    "defaultPurgeLimit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Default number of messages purged when count is omitted (1 to 100)."
    },
    "defaultBanDeleteDays": {
      "type": "integer",
      "minimum": 0,
      "maximum": 7,
      "description": "Default days of message history deleted on ban (0 to 7)."
    },
    "doubleActionCounter": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Block duplicate punishments on the same target within the window."
        },
        "cooldownMinutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 60,
          "description": "Duplicate-action cooldown window in minutes (1 to 60)."
        }
      },
      "additionalProperties": false,
      "description": "Double-action guard settings."
    },
    "collectEvidence": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Require moderators to attach evidence after an infraction."
        },
        "fallbackChannelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Fallback channel ID where moderators submit evidence when DMs are closed."
        },
        "timerDuration": {
          "type": "string",
          "pattern": "^(\\d+)\\s*(s|m|h|d)$",
          "description": "Time allowed to upload case evidence (for example 5m, 30m, 2h, 1d)."
        },
        "revokeAction": {
          "type": "boolean",
          "description": "Automatically revoke the moderation action if evidence is not provided in time."
        },
        "commands": {
          "type": "object",
          "properties": {
            "warn": {
              "type": "boolean"
            },
            "mute": {
              "type": "boolean"
            },
            "ban": {
              "type": "boolean"
            },
            "kick": {
              "type": "boolean"
            },
            "softban": {
              "type": "boolean"
            },
            "jail": {
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "description": "Which moderation commands require evidence collection."
        }
      },
      "additionalProperties": false,
      "description": "Evidence locker timer and channel settings."
    },
    "memberReports": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Allow members to report rule-breaking messages to staff."
        },
        "channelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Staff channel where member reports are delivered."
        },
        "pingEnabled": {
          "type": "boolean",
          "description": "Ping staff roles on incoming member reports."
        },
        "pingRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 25,
          "description": "Role IDs pinged when a member report arrives."
        }
      },
      "additionalProperties": false,
      "description": "Member message report workflow settings."
    },
    "trialStaffAlerts": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Enable trial staff active-moderator escalation alerts."
        },
        "callerRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 25,
          "description": "Role IDs permitted to trigger staff alerts (for example Trial Staff)."
        },
        "channelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "Channel ID where trial staff alerts are logged."
        },
        "targetStaffRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 25,
          "description": "Senior staff roles eligible to be pinged for assistance."
        }
      },
      "additionalProperties": false,
      "description": "Trial staff assistance alert settings."
    },
    "lockdownChannelIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Channel IDs locked when the moderation lockdown command runs."
    },
    "ignoredChannelIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Channel IDs ignored by moderation commands."
    },
    "ignoredRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 50,
      "description": "Role IDs ignored by moderation commands."
    },
    "ignoredUserIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "User IDs ignored by moderation commands."
    },
    "actionLogging": {
      "type": "object",
      "properties": {
        "ban": {
          "type": "boolean"
        },
        "unban": {
          "type": "boolean"
        },
        "kick": {
          "type": "boolean"
        },
        "mute": {
          "type": "boolean"
        },
        "unmute": {
          "type": "boolean"
        },
        "warn": {
          "type": "boolean"
        },
        "softban": {
          "type": "boolean"
        },
        "purge": {
          "type": "boolean"
        },
        "lock": {
          "type": "boolean"
        },
        "unlock": {
          "type": "boolean"
        },
        "slowmode": {
          "type": "boolean"
        },
        "role": {
          "type": "boolean"
        },
        "note": {
          "type": "boolean"
        },
        "nickname": {
          "type": "boolean"
        },
        "appeal": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Per-action audit logging toggles (ban, unban, kick, mute, warn, purge, appeal, etc.)."
    },
    "commandOverrides": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "commandName": {
            "type": "string",
            "enum": [
              "ban",
              "unban",
              "softban",
              "kick",
              "lock",
              "unlock",
              "lockdown",
              "slowmode",
              "clean",
              "purge",
              "role",
              "rolepersist",
              "rolepersistlist",
              "rolepersistclear",
              "diagnose",
              "ignorechannel",
              "ignorerole",
              "ignoreuser",
              "ignored",
              "mute",
              "unmute",
              "warn",
              "delwarn",
              "warnings",
              "clearwarnings",
              "note",
              "notes",
              "editnote",
              "delnote",
              "clearnotes",
              "case",
              "reason",
              "duration",
              "modlogs",
              "caselist",
              "modstats",
              "moderations",
              "unmoderated",
              "modhistory",
              "muteall",
              "unmuteall",
              "deafen",
              "undeafen",
              "deafenall",
              "undeafenall",
              "voicekick",
              "voicekickall",
              "voicemove",
              "voicemoveall",
              "drag",
              "members",
              "roles",
              "userinfo",
              "whois",
              "serverinfo",
              "nickname",
              "report",
              "alert"
            ],
            "description": "Canonical moderation command name."
          },
          "enabled": {
            "type": "boolean",
            "default": true,
            "description": "Whether this moderation command is enabled."
          },
          "allowedRoleId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{17,22}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional role ID required to execute this command (null clears the restriction)."
          }
        },
        "required": [
          "commandName"
        ],
        "additionalProperties": false
      },
      "maxItems": 60,
      "description": "Per-command enabled state and optional allowedRoleId overrides."
    },
    "replaceCommandOverrides": {
      "type": "boolean",
      "description": "When true, replaces all existing commandOverrides instead of merging by commandName."
    }
  },
  "required": [
    "guildId"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

modestringOptional (apply)

Use preview to inspect validated diffs before writing, or apply to save.

Allowed: preview | apply

enabledbooleanOptional

Enable or disable the Moderation Suite.

modRoleIdsarray<string>Optional

Discord role IDs authorized to run moderation commands.

protectedRoleIdsarray<string>Optional

Discord role IDs shielded from moderation actions (synced with immuneRoleIds).

immuneRoleIdsarray<string>Optional

Alias for protectedRoleIds; both fields are stored in sync.

muteRoleIdstring | nullOptional

Non-managed, delegation-safe guild role used for text mutes (null clears it).

logChannelIdstring | nullOptional

Channel ID where moderation audit logs are posted.

appealChannelIdstring | nullOptional

Channel ID where incoming member appeals are posted.

appealsEnabledbooleanOptional

Enable or disable the member infraction appeals portal.

allowBanAppealsbooleanOptional

Allow banned members to submit appeals.

allowMuteAppealsbooleanOptional

Allow muted members to submit appeals.

appealWaitingPeriodHoursintegerOptional

Hours a punished member must wait before submitting an appeal.

rejoinInviteUrlstring | nullOptional

Optional Discord invite URL sent when a ban appeal is approved.

appealReviewerRoleIdsarray<string>Optional

Role IDs notified or authorized to review moderation appeals.

autoUnbanOnApprovalbooleanOptional

Automatically unban the member when staff approve an appeal on the dashboard.

sendInviteOnApprovalbooleanOptional

Automatically DM the server invite URL when a ban appeal is approved.

appealCooldownDaysintegerOptional

Days between repeat appeal submissions after a denial.

appealQuestionsarray<object>Optional

Custom questions shown on the member appeal form.

dmOnInfractionbooleanOptional

Send a DM notice to members when moderated.

defaultPurgeLimitintegerOptional

Default number of messages purged when count is omitted (1 to 100).

defaultBanDeleteDaysintegerOptional

Default days of message history deleted on ban (0 to 7).

doubleActionCounterobjectOptional

Double-action guard settings.

collectEvidenceobjectOptional

Evidence locker timer and channel settings.

memberReportsobjectOptional

Member message report workflow settings.

trialStaffAlertsobjectOptional

Trial staff assistance alert settings.

lockdownChannelIdsarray<string>Optional

Channel IDs locked when the moderation lockdown command runs.

ignoredChannelIdsarray<string>Optional

Channel IDs ignored by moderation commands.

ignoredRoleIdsarray<string>Optional

Role IDs ignored by moderation commands.

ignoredUserIdsarray<string>Optional

User IDs ignored by moderation commands.

actionLoggingobjectOptional

Per-action audit logging toggles (ban, unban, kick, mute, warn, purge, appeal, etc.).

commandOverridesarray<object>Optional

Per-command enabled state and optional allowedRoleId overrides.

replaceCommandOverridesbooleanOptional

When true, replaces all existing commandOverrides instead of merging by commandName.

Example

Preview configuring moderation logs, double-action guard, and evidence timer.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "configure_moderation",
    "arguments": {
      "guildId": "1200000000000000000",
      "mode": "preview",
      "enabled": true,
      "logChannelId": "1200000000000000011",
      "doubleActionCounter": {
        "enabled": true,
        "cooldownMinutes": 5
      },
      "collectEvidence": {
        "enabled": true,
        "timerDuration": "15m",
        "fallbackChannelId": "1200000000000000012"
      }
    }
  }
}

Response

Validated preview diff or saved ModerationConfig summary.

Structured Tool Resultjson
{
  "mode": "preview",
  "valid": true,
  "guildId": "1200000000000000000",
  "changes": [
    {
      "tool": "configure_moderation",
      "module": "moderation",
      "field": "doubleActionCounter",
      "before": {
        "enabled": false,
        "cooldownMinutes": 2
      },
      "after": {
        "enabled": true,
        "cooldownMinutes": 5
      }
    }
  ]
}

Errors

Error CodeConditionResolution
UNAUTHORIZEDMissing, 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.
FORBIDDENToken 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_LIMITEDCaller exceeded the per-user sliding-window request limit.Wait for the Retry-After window before issuing another request.
VALIDATION_ERRORInput 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_RESOURCEA 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.
DASHBOARD_ONLYThe requested privilege delegation, emergency lockdown, backup restore, live member action, or billing mutation is blocked over MCP.Complete this operation directly on https://taicket.xyz using your Discord browser session.

Behavior

  • Verifies every channel ID against live Discord guild channels via sanitizeGuildChannelId.
  • Verifies muteRoleId is a non-managed, delegation-safe role belonging to the target server.
  • Keeps protectedRoleIds and immuneRoleIds synchronized on write.
  • Rejects any live case pardon, unban, or appeal review request with DASHBOARD_ONLY.