configure_jail
Configure JailConfig role, isolated channels, staff/immune roles, rehabilitation games, quiz, apology, Top.gg, invite, custom tasks, and optional one-click structural auto-setup.
Overview
Configures isolated Jail detention and sentence-reduction rehabilitation workflows in JailConfig including role-safe jailRoleId binding, verified jail/log/approval channels, rehabilitation mini-games, quizzes, written apologies, Top.gg votes, invite tasks, and custom tasks.
Running action="auto_setup" creates the @Jailed role, JAIL PROTOCOL category, #jail-cell and #jail-logs channels, and applies deny VIEW_CHANNEL overwrites across other channels; it strictly requires mcp:destructive scope and human browser approval at /oauth/approve-action. Live inmate release, commute, and sentence extensions remain strictly dashboard-only.
Permissions
- Required Scopes
- mcp:writeConditional: mcp:destructive (required when action is auto_setup)
- 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
Jailing, releasing, pardoning, commuting, or extending active inmate sentences remains on https://taicket.xyz or Discord commands.
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."
},
"action": {
"type": "string",
"enum": [
"update_config",
"auto_setup"
],
"default": "update_config",
"description": "Update Jail settings or run one-click structural Discord auto-setup."
},
"enabled": {
"type": "boolean",
"description": "Enable or disable the Jail System."
},
"jailRoleId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Delegation-safe guild role assigned to jailed members."
},
"jailCategoryId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Category channel ID grouping jail channels."
},
"jailChannelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Isolated text channel ID where inmates serve sentences."
},
"jailLogChannelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Audit log channel ID for jail events."
},
"taskApprovalChannelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
],
"description": "Default staff channel ID for reviewing manual rehabilitation task submissions."
},
"staffRoleIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 50,
"description": "Role IDs authorized to manage inmates."
},
"immuneRoleIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{17,22}$"
},
"maxItems": 50,
"description": "Role IDs immune from being jailed."
},
"stripRoles": {
"type": "boolean",
"description": "Temporarily strip member roles while jailed."
},
"disconnectVoice": {
"type": "boolean",
"description": "Disconnect jailed members from voice channels."
},
"rejoinProtection": {
"type": "boolean",
"description": "Re-apply @Jailed if an inmate leaves and rejoins."
},
"allowRehabilitation": {
"type": "boolean",
"description": "Allow inmates to earn sentence reductions via rehab tasks."
},
"maxReductionCapPercent": {
"type": "integer",
"minimum": 10,
"maximum": 100,
"description": "Maximum total sentence reduction percentage inmates can earn (10 to 100)."
},
"gamesConfig": {
"type": "object",
"properties": {
"blacktea": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
}
},
"additionalProperties": false
},
"unscramble": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
}
},
"additionalProperties": false
},
"math": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
}
},
"additionalProperties": false
},
"chain": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
}
},
"additionalProperties": false
},
"hangman": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 1440
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"description": "Per-game rehabilitation reduction percentages and cooldowns."
},
"quizConfig": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"questions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"options": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 150
},
"minItems": 2,
"maxItems": 6
},
"correctIndex": {
"type": "integer",
"minimum": 0,
"maximum": 5
}
},
"required": [
"question",
"options",
"correctIndex"
],
"additionalProperties": false
},
"maxItems": 50
}
},
"additionalProperties": false,
"description": "Rule-knowledge rehabilitation quiz configuration."
},
"apologyConfig": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"minWords": {
"type": "integer",
"minimum": 5,
"maximum": 500
},
"maxWords": {
"type": "integer",
"minimum": 20,
"maximum": 1000
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"additionalProperties": false,
"description": "Written apology rehabilitation task configuration."
},
"topggConfig": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cooldownHours": {
"type": "integer",
"minimum": 1,
"maximum": 24
}
},
"additionalProperties": false,
"description": "Top.gg vote rehabilitation reward configuration."
},
"inviteConfig": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"requiredInvites": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"minAccountAgeDays": {
"type": "integer",
"minimum": 0,
"maximum": 90
},
"revokeOnLeave": {
"type": "boolean"
}
},
"additionalProperties": false,
"description": "Invite rehabilitation task configuration."
},
"customTasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"taskId": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"publicName": {
"type": "string",
"maxLength": 32
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description": {
"type": "string",
"maxLength": 500,
"default": ""
},
"reductionPercent": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 15
},
"manualApproval": {
"type": "boolean",
"default": false
},
"approvalChannelId": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{17,22}$"
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean",
"default": true
}
},
"required": [
"title"
],
"additionalProperties": false
},
"maxItems": 25,
"description": "Custom server-specific rehabilitation tasks with optional per-task approval channels."
},
"planId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Preview planId required when applying action=\"auto_setup\"."
},
"confirmationToken": {
"type": "string",
"minLength": 8,
"maxLength": 256,
"description": "Single-use confirmationToken returned by preview mode for action=\"auto_setup\"."
}
},
"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 |
| action | string | Optional (update_config) | Update Jail settings or run one-click structural Discord auto-setup. Allowed: update_config | auto_setup |
| enabled | boolean | Optional | Enable or disable the Jail System. |
| jailRoleId | string | null | Optional | Delegation-safe guild role assigned to jailed members. |
| jailCategoryId | string | null | Optional | Category channel ID grouping jail channels. |
| jailChannelId | string | null | Optional | Isolated text channel ID where inmates serve sentences. |
| jailLogChannelId | string | null | Optional | Audit log channel ID for jail events. |
| taskApprovalChannelId | string | null | Optional | Default staff channel ID for reviewing manual rehabilitation task submissions. |
| staffRoleIds | array<string> | Optional | Role IDs authorized to manage inmates. |
| immuneRoleIds | array<string> | Optional | Role IDs immune from being jailed. |
| stripRoles | boolean | Optional | Temporarily strip member roles while jailed. |
| disconnectVoice | boolean | Optional | Disconnect jailed members from voice channels. |
| rejoinProtection | boolean | Optional | Re-apply @Jailed if an inmate leaves and rejoins. |
| allowRehabilitation | boolean | Optional | Allow inmates to earn sentence reductions via rehab tasks. |
| maxReductionCapPercent | integer | Optional | Maximum total sentence reduction percentage inmates can earn (10 to 100). |
| gamesConfig | object | Optional | Per-game rehabilitation reduction percentages and cooldowns. |
| quizConfig | object | Optional | Rule-knowledge rehabilitation quiz configuration. |
| apologyConfig | object | Optional | Written apology rehabilitation task configuration. |
| topggConfig | object | Optional | Top.gg vote rehabilitation reward configuration. |
| inviteConfig | object | Optional | Invite rehabilitation task configuration. |
| customTasks | array<object> | Optional | Custom server-specific rehabilitation tasks with optional per-task approval channels. |
| planId | string | Optional | Preview planId required when applying action="auto_setup". |
| confirmationToken | string | Optional | Single-use confirmationToken returned by preview mode for action="auto_setup". |
Example
Preview configuring Jail channels, role, and rehabilitation games.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "configure_jail",
"arguments": {
"guildId": "1200000000000000000",
"mode": "preview",
"action": "update_config",
"enabled": true,
"jailRoleId": "1300000000000000014",
"jailChannelId": "1200000000000000028",
"jailLogChannelId": "1200000000000000029",
"allowRehabilitation": true,
"maxReductionCapPercent": 75
}
}
}Response
Validated Jail preview, browser approval link (for auto_setup), or saved configuration.
{
"mode": "preview",
"valid": true,
"guildId": "1200000000000000000",
"requiresHumanApproval": false,
"changes": [
{
"tool": "configure_jail",
"module": "jail",
"field": "enabled",
"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. |
| 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. |
| DASHBOARD_ONLY | The 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. |
| 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
- Verifies jailRoleId via isRoleSafeForDelegation (isOwner: false) to block managed or privileged roles.
- Verifies jailCategoryId, jailChannelId, jailLogChannelId, taskApprovalChannelId, and per-task approvalChannelId belong to guildId.
- Requires mcp:destructive scope and browser confirmation at /oauth/approve-action before action="auto_setup" modifies Discord channels or roles.
- Rejects live inmate release, pardon, commute, or extend requests with DASHBOARD_ONLY.
Related Tools