Community & Engagementmcp:write

configure_leveling

Configure LevelingConfig text and voice XP rates, multipliers, role-safe level rewards, champion role, card style, and command toggles.

readOnlyHint: falseidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Configures member text and voice XP progression, level-up announcement routing, channel and role multipliers, role rewards, champion role, rank card styling, and command channel locks.

Every level reward role and champion role is strictly validated with isRoleSafeForDelegation (isOwner: false). Custom background storage keys (customBackgroundKey) are blocked from mass-assignment, and individual member XP edits or leaderboard resets remain dashboard-only.

Permissions

Required Scopes
mcp:write
Discord Role Access
Real Admin or active Temp Admin.
Server-Side Guard
checkManageGuild + isRoleSafeForDelegation (isOwner: false) + cross-guild channel check
Subscription Tier
Available on Free, Pro, and Enterprise.

Dashboard-only security boundaries

Editing or resetting individual member XP balances and leaderboards remains strictly dashboard-only on https://taicket.xyz.

Input Schema

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

configure_leveling.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": "preview",
      "description": "Execution mode. Use preview to validate and inspect changes before writing."
    },
    "enabled": {
      "type": "boolean",
      "description": "Enable or disable Leveling XP tracking."
    },
    "maxLevel": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "description": "Global level cap (0 for unlimited)."
    },
    "syncRolesOnJoin": {
      "type": "boolean",
      "description": "Re-apply earned level roles when a member rejoins."
    },
    "autoResetMode": {
      "type": "string",
      "enum": [
        "none",
        "leave",
        "ban",
        "both"
      ],
      "description": "Automatic XP reset policy when members leave or are banned."
    },
    "textXpMin": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "description": "Minimum chat XP earned per cooldown."
    },
    "textXpMax": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "description": "Maximum chat XP earned per cooldown."
    },
    "textCooldownSeconds": {
      "type": "integer",
      "minimum": 3,
      "maximum": 3600,
      "description": "Cooldown in seconds between chat XP grants."
    },
    "voiceXpPerMinute": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "description": "Shorthand setting both minimum and maximum voice XP per minute."
    },
    "levelUpChannelId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Channel ID for level-up announcements."
    },
    "levelUpDestination": {
      "type": "string",
      "enum": [
        "current",
        "channel",
        "dm",
        "disabled"
      ],
      "description": "Where to send level-up announcements."
    },
    "levelUpMessage": {
      "type": "string",
      "maxLength": 1800,
      "description": "Custom level-up announcement message template."
    },
    "ignoredChannelIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Shorthand list of text channels ignored for chat XP."
    },
    "ignoredRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Shorthand list of roles excluded from earning XP."
    },
    "chat": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "minXp": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        },
        "maxXp": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        },
        "cooldownSeconds": {
          "type": "integer",
          "minimum": 3,
          "maximum": 3600
        },
        "minMessageLength": {
          "type": "integer",
          "minimum": 0,
          "maximum": 500
        },
        "effortBoosterEnabled": {
          "type": "boolean"
        },
        "effortMaxBonusPercent": {
          "type": "integer",
          "minimum": 0,
          "maximum": 200
        },
        "allowInThreads": {
          "type": "boolean"
        },
        "ignoredPrefixes": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 10
          },
          "maxItems": 25
        },
        "channelFilterMode": {
          "type": "string",
          "enum": [
            "blacklist",
            "whitelist"
          ]
        },
        "channelIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 100
        },
        "maxLevel": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "levelPreset": {
          "type": "string",
          "enum": [
            "standard",
            "fast",
            "classic",
            "linear",
            "custom"
          ]
        },
        "customLevels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "level": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Target level number (1 to 10,000)."
              },
              "xp": {
                "type": "integer",
                "minimum": 10,
                "maximum": 500000000,
                "description": "Total cumulative XP required for this level."
              }
            },
            "required": [
              "level",
              "xp"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        }
      },
      "additionalProperties": false,
      "description": "Chat XP rates, channel filter, and level curve configuration."
    },
    "voice": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "minXpPerMin": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        },
        "maxXpPerMin": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5000
        },
        "minMembers": {
          "type": "integer",
          "minimum": 1,
          "maximum": 25
        },
        "ignoreMuted": {
          "type": "boolean"
        },
        "ignoreDeafened": {
          "type": "boolean"
        },
        "ignoreAfkChannel": {
          "type": "boolean"
        },
        "streamCameraBonusPercent": {
          "type": "integer",
          "minimum": 0,
          "maximum": 200
        },
        "channelFilterMode": {
          "type": "string",
          "enum": [
            "blacklist",
            "whitelist"
          ]
        },
        "channelIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 100
        },
        "maxLevel": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "levelPreset": {
          "type": "string",
          "enum": [
            "standard",
            "fast",
            "classic",
            "linear",
            "custom"
          ]
        },
        "customLevels": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "level": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Target level number (1 to 10,000)."
              },
              "xp": {
                "type": "integer",
                "minimum": 10,
                "maximum": 500000000,
                "description": "Total cumulative XP required for this level."
              }
            },
            "required": [
              "level",
              "xp"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        }
      },
      "additionalProperties": false,
      "description": "Voice XP rates, anti-AFK rules, and level curve configuration."
    },
    "multipliers": {
      "type": "object",
      "properties": {
        "globalMultiplier": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 10
        },
        "boosterEnabled": {
          "type": "boolean"
        },
        "boosterMultiplier": {
          "type": "number",
          "minimum": 1,
          "maximum": 10
        },
        "weekendBoostEnabled": {
          "type": "boolean"
        },
        "weekendMultiplier": {
          "type": "number",
          "minimum": 1,
          "maximum": 10
        },
        "roleMultiplierPriority": {
          "type": "string",
          "enum": [
            "highest_value",
            "highest_position"
          ]
        },
        "channelMultipliers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 40
              },
              "multiplier": {
                "type": "number",
                "minimum": 0.1,
                "maximum": 10,
                "description": "XP multiplier (0.1x to 10x)."
              },
              "channelIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{17,22}$"
                },
                "maxItems": 50
              },
              "roleIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{17,22}$"
                },
                "maxItems": 50
              }
            },
            "required": [
              "multiplier"
            ],
            "additionalProperties": false
          },
          "maxItems": 30
        },
        "roleMultipliers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 40
              },
              "multiplier": {
                "type": "number",
                "minimum": 0.1,
                "maximum": 10,
                "description": "XP multiplier (0.1x to 10x)."
              },
              "channelIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{17,22}$"
                },
                "maxItems": 50
              },
              "roleIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{17,22}$"
                },
                "maxItems": 50
              }
            },
            "required": [
              "multiplier"
            ],
            "additionalProperties": false
          },
          "maxItems": 30
        }
      },
      "additionalProperties": false,
      "description": "Global, booster, weekend, channel, and role XP multipliers."
    },
    "roleRewards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 40,
            "description": "Optional stable reward identifier."
          },
          "level": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Level required to unlock the role(s)."
          },
          "roleId": {
            "type": "string",
            "pattern": "^\\d{17,22}$",
            "description": "Single delegation-safe role ID shorthand."
          },
          "roleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            "maxItems": 10,
            "description": "List of delegation-safe Discord role IDs granted at this level."
          },
          "stack": {
            "type": "boolean",
            "description": "Keep previous level reward roles when unlocking higher tiers."
          },
          "source": {
            "type": "string",
            "enum": [
              "any",
              "chat",
              "voice"
            ],
            "description": "XP track that triggers this reward (any, chat, or voice)."
          }
        },
        "required": [
          "level"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "description": "Level-to-role reward mappings (every role must pass isRoleSafeForDelegation)."
    },
    "championRoleId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Delegation-safe role granted to the #1 leaderboard champion."
    },
    "championMinLevel": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "Minimum level to hold the champion role."
    },
    "noChampionRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Roles excluded from holding the champion role."
    },
    "noXpRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Roles excluded from earning XP."
    },
    "noRewardRoleIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{17,22}$"
      },
      "maxItems": 100,
      "description": "Roles excluded from receiving level reward roles."
    },
    "levelUp": {
      "type": "object",
      "properties": {
        "destination": {
          "type": "string",
          "enum": [
            "current",
            "channel",
            "dm",
            "disabled"
          ]
        },
        "channelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "displayMode": {
          "type": "string",
          "enum": [
            "canvas",
            "text"
          ]
        },
        "pingUser": {
          "type": "boolean"
        },
        "message": {
          "type": "string",
          "maxLength": 1800
        },
        "minLevel": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        },
        "levelFactor": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        },
        "specificLevels": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "maxItems": 100
        },
        "onlyWithRoleReward": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Level-up announcement destination, display style, and trigger filters."
    },
    "cardStyle": {
      "type": "object",
      "properties": {
        "theme": {
          "type": "string",
          "enum": [
            "obsidian",
            "crimson",
            "gold",
            "emerald"
          ]
        },
        "useCustomBackground": {
          "type": "boolean"
        },
        "customBackgroundUrl": {
          "type": "string",
          "maxLength": 512
        },
        "overlayOpacity": {
          "type": "integer",
          "minimum": 0,
          "maximum": 85
        },
        "accentMode": {
          "type": "string",
          "enum": [
            "theme",
            "custom",
            "role",
            "avatar"
          ]
        },
        "customAccentColor": {
          "type": "string",
          "pattern": "^#?[0-9a-fA-F]{6}$"
        },
        "applyCustomBgToRank": {
          "type": "boolean"
        },
        "applyCustomBgToLevelUp": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Rank and level-up card styling (customBackgroundKey R2 injection is blocked)."
    },
    "commands": {
      "type": "object",
      "properties": {
        "rankEnabled": {
          "type": "boolean"
        },
        "leaderboardEnabled": {
          "type": "boolean"
        },
        "rewardsEnabled": {
          "type": "boolean"
        },
        "syncRolesEnabled": {
          "type": "boolean"
        },
        "allowedChannelIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 100
        },
        "staffBypassChannelLock": {
          "type": "boolean"
        },
        "wrongChannelNotice": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Leveling slash and mention command toggles and allowed channels."
    }
  },
  "required": [
    "guildId"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

modestringOptional (preview)

Execution mode. Use preview to validate and inspect changes before writing.

Allowed: preview | apply

enabledbooleanOptional

Enable or disable Leveling XP tracking.

maxLevelintegerOptional

Global level cap (0 for unlimited).

syncRolesOnJoinbooleanOptional

Re-apply earned level roles when a member rejoins.

autoResetModestringOptional

Automatic XP reset policy when members leave or are banned.

Allowed: none | leave | ban | both

textXpMinintegerOptional

Minimum chat XP earned per cooldown.

textXpMaxintegerOptional

Maximum chat XP earned per cooldown.

textCooldownSecondsintegerOptional

Cooldown in seconds between chat XP grants.

voiceXpPerMinuteintegerOptional

Shorthand setting both minimum and maximum voice XP per minute.

levelUpChannelIdstring | nullOptional

Channel ID for level-up announcements.

levelUpDestinationstringOptional

Where to send level-up announcements.

Allowed: current | channel | dm | disabled

levelUpMessagestringOptional

Custom level-up announcement message template.

ignoredChannelIdsarray<string>Optional

Shorthand list of text channels ignored for chat XP.

ignoredRoleIdsarray<string>Optional

Shorthand list of roles excluded from earning XP.

chatobjectOptional

Chat XP rates, channel filter, and level curve configuration.

voiceobjectOptional

Voice XP rates, anti-AFK rules, and level curve configuration.

multipliersobjectOptional

Global, booster, weekend, channel, and role XP multipliers.

roleRewardsarray<object>Optional

Level-to-role reward mappings (every role must pass isRoleSafeForDelegation).

championRoleIdstring | nullOptional

Delegation-safe role granted to the #1 leaderboard champion.

championMinLevelintegerOptional

Minimum level to hold the champion role.

noChampionRoleIdsarray<string>Optional

Roles excluded from holding the champion role.

noXpRoleIdsarray<string>Optional

Roles excluded from earning XP.

noRewardRoleIdsarray<string>Optional

Roles excluded from receiving level reward roles.

levelUpobjectOptional

Level-up announcement destination, display style, and trigger filters.

cardStyleobjectOptional

Rank and level-up card styling (customBackgroundKey R2 injection is blocked).

commandsobjectOptional

Leveling slash and mention command toggles and allowed channels.

Example

Preview configuring text/voice XP rates and a Level 10 reward role.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "configure_leveling",
    "arguments": {
      "guildId": "1200000000000000000",
      "mode": "preview",
      "enabled": true,
      "textXpMin": 15,
      "textXpMax": 25,
      "voiceXpPerMinute": 10,
      "roleRewards": [
        {
          "level": 10,
          "roleId": "1300000000000000020"
        }
      ]
    }
  }
}

Response

Validated preview diff or saved LevelingConfig document.

Structured Tool Resultjson
{
  "mode": "preview",
  "valid": true,
  "changedFields": [
    "enabled",
    "chat",
    "voice",
    "roleRewards"
  ],
  "roleSafetyChecks": {
    "1300000000000000020": "safe"
  }
}

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

  • Validates every channel ID against live guild channels via sanitizeGuildChannelId / sanitizeGuildChannelIdList.
  • Rejects any level reward role or champion role that holds dangerous permissions, is managed, or sits at or above Taicket or caller hierarchy.
  • Rejects minXp > maxXp and validates custom level curves for strictly ascending XP milestones.
  • Blocks customBackgroundKey R2 mass-assignment and requires public HTTPS URLs for customBackgroundUrl.