configure_ai_moderation
Configure Pro/Enterprise AI Moderation channels, rules channels, action matrix, and AiMemory exception phrases with dual-collection mirroring.
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.
{
"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
| Name | Type | Required | Description |
|---|---|---|---|
| guildId | string | Required | Discord server (guild) snowflake ID. |
| mode | string | Optional (apply) | Execution mode: preview diffs or apply changes. Allowed: preview | apply |
| action | string | Optional (update_config) | Update AI Moderation settings or add/remove an AiMemory exception phrase. Allowed: update_config | add_exception | remove_exception |
| enabled | boolean | Optional | Enable or disable AI Chat Moderation. |
| monitoredChannels | array<string> | Optional | Discord text channel IDs monitored by AI Moderation (Pro: max 10, Enterprise: max 50). |
| ruleSourceChannels | array<string> | Optional | Discord rules channel IDs synced for AI Moderation (Pro: max 1, Enterprise: max 3). |
| logChannelId | string | null | Optional | Discord channel ID for AI Moderation incident logs. |
| ignoredRoles | array<string> | Optional | Role IDs ignored by AI Moderation. |
| language | string | Optional | Moderation language code (for example en). |
| autoWipeDays | integer | Optional | Days before penalty points automatically expire (0 to 365). |
| aiConfidenceThreshold | integer | Optional | Minimum confidence score (50 to 100) before taking automated action. |
| actionMatrix | array<object> | Optional | Escalation matrix mapping violation points to moderation actions (kick/ban downgraded to timeout_24h on Pro). |
| exceptionPhrase | string | Optional | Allowed phrase to add or remove in AiMemory. |
| exceptionReason | string | Optional | Optional reason explaining why this phrase is allowed. |
| exceptionId | string | Optional | Stored exception identifier when removing an AiMemory phrase. |
Example
Preview enabling AI Moderation across two community channels with a log channel.
{
"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.
{
"mode": "preview",
"action": "update_config",
"planTier": "pro",
"valid": true,
"changes": [
{
"tool": "configure_ai_moderation",
"module": "aimod",
"field": "aiModerationEnabled",
"before": false,
"after": true
}
]
}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. |
| TIER_UPGRADE_REQUIRED | The 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_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. |
| 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. |
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.