configure_automation_and_utility
Configure Custom Commands mention workflows, Component Builder Containers V2/embeds and access settings, and Utility command toggles & liveboard configuration.
Overview
Manages three operational studio modules: custom-commands (visual workflow CRUD with strict block allowlisting, regex safety, and per-guild name/alias uniqueness), component-builder (reusable Components V2 containers, classic embeds, role-safe buttons, and delegated builder settings), and utility (command toggles, role locks, and liveboard channel/period settings).
Component Builder item creation, editing, and deletion follow checkComponentBuilderAccess (allowing delegated users and roles), while Component Builder settings, Custom Commands, and Utility strictly require Manage Server (checkManageGuild). Deleting custom commands or saved components requires mcp:destructive and verified human browser approval.
Permissions
- Required Scopes
- mcp:writeConditional: mcp:destructive (required when deleting a custom command or a saved Component Builder item)
- Discord Role Access
- Real Admin or active Temp Admin (delegated Component Builder users/roles permitted for component-builder item upsert/delete only; settings remain admin-only).
- Server-Side Guard
- checkManageGuild (or checkComponentBuilderAccess for component-builder items) + isRoleSafeForDelegation (isOwner: false) + cross-guild channel check
- Subscription Tier
- Available on Free, Pro, and Enterprise.
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": "preview",
"description": "Execution mode. Use preview to validate and inspect changes before writing."
},
"module": {
"type": "string",
"enum": [
"custom-commands",
"component-builder",
"utility"
],
"description": "Target automation or utility module."
},
"action": {
"type": "string",
"enum": [
"upsert",
"delete",
"update_settings"
],
"default": "upsert",
"description": "Operation to execute. Use update_settings for Component Builder access settings (admin only) or Utility config; delete requires mcp:destructive and human browser approval."
},
"payload": {
"type": "object",
"additionalProperties": {},
"description": "Module payload matching the selected module and action."
},
"targetId": {
"type": "string",
"maxLength": 80,
"description": "Command ID/name or Component ID/messageId when action is delete."
},
"planId": {
"type": "string",
"maxLength": 80,
"description": "Approved preview plan ID required when applying destructive deletions."
},
"confirmationToken": {
"type": "string",
"maxLength": 128,
"description": "Human-approved confirmation token required when applying destructive deletions."
}
},
"required": [
"guildId",
"module"
],
"additionalProperties": false
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| guildId | string | Required | Discord server (guild) snowflake ID. |
| mode | string | Optional (preview) | Execution mode. Use preview to validate and inspect changes before writing. Allowed: preview | apply |
| module | string | Required | Target automation or utility module. Allowed: custom-commands | component-builder | utility |
| action | string | Optional (upsert) | Operation to execute. Use update_settings for Component Builder access settings (admin only) or Utility config; delete requires mcp:destructive and human browser approval. Allowed: upsert | delete | update_settings |
| payload | object | Optional | Module payload matching the selected module and action. |
| targetId | string | Optional | Command ID/name or Component ID/messageId when action is delete. |
| planId | string | Optional | Approved preview plan ID required when applying destructive deletions. |
| confirmationToken | string | Optional | Human-approved confirmation token required when applying destructive deletions. |
Example
Preview creating a Components V2 info card in Component Builder.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "configure_automation_and_utility",
"arguments": {
"guildId": "1200000000000000000",
"mode": "preview",
"module": "component-builder",
"action": "upsert",
"payload": {
"name": "Server Info Card",
"layout": "container_v2",
"accentColor": "#0052FF",
"blocks": [
{
"type": "text",
"content": "Welcome to Northstar Community."
}
]
}
}
}
}Response
Validated preview, human approval prompt for deletions, or saved automation/utility record.
{
"mode": "preview",
"module": "component-builder",
"action": "upsert",
"valid": true,
"summary": "Create Component Builder item \"Server Info Card\""
}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. |
| CONFLICT | The resource already exists or the setup plan has already been consumed. | Use an update action or create a fresh preview plan before retrying. |
| 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. |
| 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. |
Behavior
- Validates every role granted, removed, or toggled by Custom Command role blocks or Component Builder role buttons with isRoleSafeForDelegation (isOwner: false).
- Enforces built-in reserved name blocking, per-guild command/alias uniqueness, safe regex patterns (isSafeRegexPattern), and public HTTPS media URLs without R2 storage key injection.
- Enforces cross-guild componentId uniqueness and verifies every referenced channel and role against guildId.
- Requires mcp:destructive scope and browser-verified human approval before deleting a Custom Command (and its counters) or a saved Component Builder item.