Moderation & Securitymcp:write

configure_ai_moderation

Configure Pro/Enterprise AI Moderation channels, rules channels, action matrix, and AiMemory exception phrases with dual-collection mirroring.

readOnlyHint: falseidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Updates AutomodGuildConfig and mirrors identical settings to BotAiModeration (aimoderations) so bot moderation workers stay synchronized, plus manages AiMemory exception phrases.

Enforces Pro and Enterprise quotas, blocks and disables Free servers, and automatically downgrades kick/ban matrix rows to timeout_24h on Pro servers.

Permissions

Required Scopes
mcp:write
Discord Role Access
Real Discord Admin or active Temp Admin.
Server-Side Guard
checkManageGuild + live guild channel verification + enforceAiModPremium
Subscription Tier
Free: blocked and auto-disabled. Pro: max 10 monitored channels, 1 rules channel, 50 exception phrases, kick/ban downgraded to timeout_24h. Enterprise: max 50 monitored channels, 3 rules channels, 500 exception phrases, kick/ban allowed.

Input Schema

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

configure_ai_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": "Execution mode: preview diffs or apply changes."
    },
    "action": {
      "type": "string",
      "enum": [
        "update_config",
        "add_exception",
        "remove_exception"
      ],
      "default": "update_config",
      "description": "Update AI Moderation settings or add/remove an AiMemory exception phrase."
    },
    "enabled": {
      "type": "boolean",
      "description": "Enable or disable AI Chat Moderation."
    },
    "monitoredChannels": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 60,
      "description": "Discord text channel IDs monitored by AI Moderation (Pro: max 10, Enterprise: max 50)."
    },
    "ruleSourceChannels": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 10,
      "description": "Discord rules channel IDs synced for AI Moderation (Pro: max 1, Enterprise: max 3)."
    },
    "logChannelId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Discord channel ID for AI Moderation incident logs."
    },
    "ignoredRoles": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 50,
      "description": "Role IDs ignored by AI Moderation."
    },
    "language": {
      "type": "string",
      "minLength": 2,
      "maxLength": 32,
      "description": "Moderation language code (for example en)."
    },
    "autoWipeDays": {
      "type": "integer",
      "minimum": 0,
      "maximum": 365,
      "description": "Days before penalty points automatically expire (0 to 365)."
    },
    "aiConfidenceThreshold": {
      "type": "integer",
      "minimum": 50,
      "maximum": 100,
      "description": "Minimum confidence score (50 to 100) before taking automated action."
    },
    "actionMatrix": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "points": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "action": {
            "type": "string",
            "enum": [
              "log",
              "warn",
              "delete",
              "timeout_1h",
              "timeout_24h",
              "kick",
              "ban"
            ]
          }
        },
        "required": [
          "points",
          "action"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "description": "Escalation matrix mapping violation points to moderation actions (kick/ban downgraded to timeout_24h on Pro)."
    },
    "exceptionPhrase": {
      "type": "string",
      "minLength": 1,
      "maxLength": 180,
      "description": "Allowed phrase to add or remove in AiMemory."
    },
    "exceptionReason": {
      "type": "string",
      "maxLength": 200,
      "description": "Optional reason explaining why this phrase is allowed."
    },
    "exceptionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Stored exception identifier when removing an AiMemory phrase."
    }
  },
  "required": [
    "guildId"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

modestringOptional (apply)

Execution mode: preview diffs or apply changes.

Allowed: preview | apply

actionstringOptional (update_config)

Update AI Moderation settings or add/remove an AiMemory exception phrase.

Allowed: update_config | add_exception | remove_exception

enabledbooleanOptional

Enable or disable AI Chat Moderation.

monitoredChannelsarray<string>Optional

Discord text channel IDs monitored by AI Moderation (Pro: max 10, Enterprise: max 50).

ruleSourceChannelsarray<string>Optional

Discord rules channel IDs synced for AI Moderation (Pro: max 1, Enterprise: max 3).

logChannelIdstring | nullOptional

Discord channel ID for AI Moderation incident logs.

ignoredRolesarray<string>Optional

Role IDs ignored by AI Moderation.

languagestringOptional

Moderation language code (for example en).

autoWipeDaysintegerOptional

Days before penalty points automatically expire (0 to 365).

aiConfidenceThresholdintegerOptional

Minimum confidence score (50 to 100) before taking automated action.

actionMatrixarray<object>Optional

Escalation matrix mapping violation points to moderation actions (kick/ban downgraded to timeout_24h on Pro).

exceptionPhrasestringOptional

Allowed phrase to add or remove in AiMemory.

exceptionReasonstringOptional

Optional reason explaining why this phrase is allowed.

exceptionIdstringOptional

Stored exception identifier when removing an AiMemory phrase.

Example

Preview enabling AI Moderation across two community channels with a log channel.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "configure_ai_moderation",
    "arguments": {
      "guildId": "1100000000000000001",
      "mode": "preview",
      "action": "update_config",
      "enabled": true,
      "monitoredChannels": [
        "1200000000000000020",
        "1200000000000000021"
      ],
      "logChannelId": "1200000000000000011"
    }
  }
}

Response

Validated preview diff or saved AI Moderation configuration.

Structured Tool Resultjson
{
  "mode": "preview",
  "action": "update_config",
  "planTier": "pro",
  "valid": true,
  "changes": [
    {
      "tool": "configure_ai_moderation",
      "module": "aimod",
      "field": "aiModerationEnabled",
      "before": false,
      "after": true
    }
  ]
}

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.
TIER_UPGRADE_REQUIREDThe requested module, quota, or option requires a Pro or Enterprise subscription.Review current plan limits with get_server_configuration or upgrade at https://taicket.xyz/dashboard/{guildId}/premium.
DISCORD_API_ERRORDiscord 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.
NOT_FOUNDThe 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.

Behavior

  • Mirrors every configuration write identically to both AutomodGuildConfig and BotAiModeration.
  • Downgrades kick and ban action matrix entries to timeout_24h on Pro servers and reports the adjustment in warnings.
  • Verifies all monitoredChannels, ruleSourceChannels, and logChannelId against live guild channels.