Community & Engagementmcp:write

configure_economy

Configure EconomyGuildConfig, role-safe store items, craft recipes, role income rules, and custom replies on the isolated taicket_economy database.

readOnlyHint: falseidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Manages Economy guild configuration (currency, starting balances, work/adventure/crime/rob/heist, passive income, casino limits, and pets), store items, crafting recipes, role income schedules, and custom replies in the isolated taicket_economy database.

Every role granted or removed by store items, crates, or crafting recipes is validated via isRoleSafeForDelegation (isOwner: false). Deleting store items, recipes, role income rules, or custom replies requires mcp:destructive and verified human browser approval. Editing member wallets or wiping server balances stays strictly dashboard-only.

Permissions

Required Scopes
mcp:writeConditional: mcp:destructive (required when deleting store items, craft recipes, role income rules, or custom replies)
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 individual member wallet or bank balances, member inventories, and full economy wipes remain 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_economy.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."
    },
    "action": {
      "type": "string",
      "enum": [
        "update_config",
        "upsert_store_item",
        "delete_store_item",
        "upsert_recipe",
        "delete_recipe",
        "upsert_role_income",
        "delete_role_income",
        "upsert_custom_reply",
        "delete_custom_reply"
      ],
      "default": "update_config",
      "description": "Economy sub-operation to perform."
    },
    "config": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "prefix": {
          "type": "string",
          "minLength": 1,
          "maxLength": 12
        },
        "currencyName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32
        },
        "currencySymbol": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "symbolPosition": {
          "type": "string",
          "enum": [
            "before",
            "after"
          ]
        },
        "storeSubtitle": {
          "type": "string",
          "maxLength": 200
        },
        "startingCash": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000
        },
        "startingBank": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000
        },
        "maxCash": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "maxBank": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "transferTaxPct": {
          "type": "number",
          "minimum": 0,
          "maximum": 50
        },
        "allowNegativeCash": {
          "type": "boolean"
        },
        "allowSelfReset": {
          "type": "boolean"
        },
        "auditLogChannelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "channelFilterMode": {
          "type": "string",
          "enum": [
            "blacklist",
            "whitelist"
          ]
        },
        "channelIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 100
        },
        "disabledCommands": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 40
          },
          "maxItems": 100
        },
        "slutAliasEnabled": {
          "type": "boolean"
        },
        "customJobs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "jobId": {
                "type": "string",
                "maxLength": 40
              },
              "trigger": {
                "type": "string",
                "minLength": 1,
                "maxLength": 24
              },
              "name": {
                "type": "string",
                "maxLength": 40
              },
              "emoji": {
                "type": "string",
                "maxLength": 32
              },
              "description": {
                "type": "string",
                "maxLength": 160
              },
              "enabled": {
                "type": "boolean"
              },
              "minPayout": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000000
              },
              "maxPayout": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000000
              },
              "cooldownSeconds": {
                "type": "integer",
                "minimum": 10,
                "maximum": 604800
              },
              "failRatePct": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "fineMode": {
                "type": "string",
                "enum": [
                  "percent_networth",
                  "fixed"
                ]
              },
              "minFine": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "maxFine": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000000000
              },
              "requiredRoleId": {
                "type": "string",
                "maxLength": 24
              },
              "successReplies": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 350
                },
                "maxItems": 25
              },
              "failReplies": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 350
                },
                "maxItems": 25
              }
            },
            "required": [
              "trigger"
            ],
            "additionalProperties": false
          },
          "maxItems": 40
        },
        "cardStyle": {
          "type": "object",
          "properties": {
            "theme": {
              "type": "string",
              "enum": [
                "green",
                "blue",
                "gold",
                "red"
              ]
            },
            "useCustomBackground": {
              "type": "boolean"
            },
            "overlayOpacity": {
              "type": "integer",
              "minimum": 0,
              "maximum": 85
            },
            "accentMode": {
              "type": "string",
              "enum": [
                "theme",
                "custom"
              ]
            },
            "customAccentColor": {
              "type": "string",
              "pattern": "^#?[0-9a-fA-F]{6}$"
            }
          },
          "additionalProperties": false
        },
        "streaks": {
          "type": "object",
          "properties": {
            "dailyEnabled": {
              "type": "boolean"
            },
            "dailyBaseAmount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            },
            "dailyStreakBonus": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            },
            "dailyMaxStreakDays": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            },
            "dailyFailRatePct": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "weeklyEnabled": {
              "type": "boolean"
            },
            "weeklyAmount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            },
            "weeklyFailRatePct": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "monthlyEnabled": {
              "type": "boolean"
            },
            "monthlyAmount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            },
            "monthlyFailRatePct": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          "additionalProperties": false
        },
        "earning": {
          "type": "object",
          "properties": {
            "defaultRepliesEnabled": {
              "type": "boolean"
            },
            "work": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "minPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "maxPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 15,
                  "maximum": 604800
                },
                "failRatePct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "fineMode": {
                  "type": "string",
                  "enum": [
                    "percent_networth",
                    "fixed"
                  ]
                },
                "minFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "maxFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                }
              },
              "additionalProperties": false
            },
            "adventure": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "minPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "maxPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 15,
                  "maximum": 604800
                },
                "failRatePct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "fineMode": {
                  "type": "string",
                  "enum": [
                    "percent_networth",
                    "fixed"
                  ]
                },
                "minFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "maxFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                }
              },
              "additionalProperties": false
            },
            "crime": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "minPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "maxPayout": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 15,
                  "maximum": 604800
                },
                "failRatePct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "fineMode": {
                  "type": "string",
                  "enum": [
                    "percent_networth",
                    "fixed"
                  ]
                },
                "minFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "maxFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                }
              },
              "additionalProperties": false
            },
            "rob": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 30,
                  "maximum": 604800
                },
                "minVictimCash": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "baseFailPct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "minFailPct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "maxFailPct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "minStealPct": {
                  "type": "number",
                  "minimum": 1,
                  "maximum": 100
                },
                "maxStealPct": {
                  "type": "number",
                  "minimum": 1,
                  "maximum": 100
                },
                "fineMode": {
                  "type": "string",
                  "enum": [
                    "percent_networth",
                    "fixed"
                  ]
                },
                "minFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "maxFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "immuneRoleIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^\\d{17,22}$"
                  },
                  "maxItems": 50
                }
              },
              "additionalProperties": false
            },
            "heist": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "cooldownSeconds": {
                  "type": "integer",
                  "minimum": 60,
                  "maximum": 604800
                },
                "minCrew": {
                  "type": "integer",
                  "minimum": 2,
                  "maximum": 10
                },
                "maxCrew": {
                  "type": "integer",
                  "minimum": 2,
                  "maximum": 10
                },
                "minVictimCash": {
                  "type": "integer",
                  "minimum": 100,
                  "maximum": 1000000000
                },
                "failRatePct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "minStealPct": {
                  "type": "number",
                  "minimum": 5,
                  "maximum": 90
                },
                "maxStealPct": {
                  "type": "number",
                  "minimum": 5,
                  "maximum": 95
                },
                "minFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "maxFine": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "passiveIncome": {
          "type": "object",
          "properties": {
            "chatEnabled": {
              "type": "boolean"
            },
            "chatMinAmount": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "chatMaxAmount": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "chatCooldownSeconds": {
              "type": "integer",
              "minimum": 5,
              "maximum": 86400
            },
            "chatMinLength": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            },
            "chatChannelMode": {
              "type": "string",
              "enum": [
                "all",
                "whitelist",
                "blacklist"
              ]
            },
            "chatChannelIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{17,22}$"
              },
              "maxItems": 100
            },
            "voiceEnabled": {
              "type": "boolean"
            },
            "voiceMinPerMin": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "voiceMaxPerMin": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "voiceMinMembers": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25
            },
            "voiceIgnoreMuted": {
              "type": "boolean"
            },
            "voiceIgnoreDeafened": {
              "type": "boolean"
            },
            "voiceIgnoreAfk": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "games": {
          "type": "object",
          "properties": {
            "globalMaxUsagesPerWindow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            },
            "globalWindowSeconds": {
              "type": "integer",
              "minimum": 10,
              "maximum": 3600
            },
            "blackjackDecks": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            },
            "slotsPayoutProfile": {
              "type": "string",
              "enum": [
                "tight",
                "balanced",
                "generous"
              ]
            },
            "slotSymbols": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "minItems": 3,
              "maxItems": 6
            },
            "cockfightStartWinPct": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "cockfightMaxWinPct": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "rouletteWaitSeconds": {
              "type": "integer",
              "minimum": 10,
              "maximum": 60
            },
            "limits": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "minBet": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000
                  },
                  "maxBet": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "failRatePct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                },
                "additionalProperties": false
              },
              "propertyNames": {
                "enum": [
                  "blackjack",
                  "roulette",
                  "slots",
                  "coinflip",
                  "crash",
                  "mines",
                  "highlow",
                  "russian-roulette",
                  "cockfight",
                  "dice",
                  "duel",
                  "race"
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "pets": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "encounterChanceWorkPct": {
              "type": "number",
              "minimum": 0,
              "maximum": 50
            },
            "encounterChanceAdventurePct": {
              "type": "number",
              "minimum": 0,
              "maximum": 50
            },
            "encounterChanceCrimePct": {
              "type": "number",
              "minimum": 0,
              "maximum": 50
            },
            "maxTrainPerDay": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "swapCooldownSeconds": {
              "type": "integer",
              "minimum": 0,
              "maximum": 604800
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false,
      "description": "Economy guild configuration fields (for update_config)."
    },
    "storeItem": {
      "type": "object",
      "properties": {
        "itemId": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,40}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "description": {
          "type": "string",
          "maxLength": 500
        },
        "emoji": {
          "type": "string",
          "maxLength": 64
        },
        "category": {
          "type": "string",
          "maxLength": 40
        },
        "rarity": {
          "type": "string",
          "enum": [
            "Common",
            "Rare",
            "Epic",
            "Legendary"
          ]
        },
        "price": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "sellBackPrice": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "listedInStore": {
          "type": "boolean"
        },
        "stock": {
          "type": "integer",
          "minimum": -1,
          "maximum": 1000000
        },
        "maxOwned": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        },
        "expiresAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "tradable": {
          "type": "boolean"
        },
        "storeOrder": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "inventoryItem": {
          "type": "boolean"
        },
        "usable": {
          "type": "boolean"
        },
        "reusable": {
          "type": "boolean"
        },
        "useCooldownSeconds": {
          "type": "integer",
          "minimum": 0,
          "maximum": 604800
        },
        "specialKind": {
          "type": "string",
          "enum": [
            "none",
            "loot_crate",
            "arena_fighter",
            "rob_shield",
            "work_booster"
          ]
        },
        "boosterMultiplier": {
          "type": "number",
          "minimum": 1.1,
          "maximum": 10
        },
        "boosterDurationMinutes": {
          "type": "integer",
          "minimum": 5,
          "maximum": 43200
        },
        "requiredRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 25
        },
        "blockedRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 25
        },
        "requiredMinNetWorth": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "requiredItemId": {
          "type": "string",
          "maxLength": 40
        },
        "roleId": {
          "type": "string",
          "pattern": "^\\d{17,22}$",
          "description": "Shorthand single delegation-safe role ID to grant."
        },
        "grantRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 10
        },
        "removeRoleIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^\\d{17,22}$"
          },
          "maxItems": 10
        },
        "roleDurationMinutes": {
          "type": "integer",
          "minimum": 0,
          "maximum": 525600
        },
        "grantCashAmount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "customReplyMessage": {
          "type": "string",
          "maxLength": 500
        },
        "crateOutcomes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "weightPct": {
                "type": "number",
                "minimum": 0.01,
                "maximum": 100
              },
              "cashReward": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000000
              },
              "grantItemId": {
                "type": "string",
                "maxLength": 40
              },
              "grantItemQty": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              },
              "grantRoleId": {
                "type": "string",
                "maxLength": 24
              }
            },
            "required": [
              "label",
              "weightPct"
            ],
            "additionalProperties": false
          },
          "maxItems": 25
        }
      },
      "required": [
        "name",
        "price"
      ],
      "additionalProperties": false,
      "description": "Store item payload (for upsert_store_item)."
    },
    "recipe": {
      "type": "object",
      "properties": {
        "recipeId": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,40}$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "description": {
          "type": "string",
          "maxLength": 300
        },
        "cashCost": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000000000
        },
        "ingredients": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "itemId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 40
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              }
            },
            "required": [
              "itemId",
              "quantity"
            ],
            "additionalProperties": false
          },
          "maxItems": 25
        },
        "outputItemId": {
          "type": "string",
          "maxLength": 40
        },
        "outputItemQty": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        },
        "outputRoleId": {
          "type": "string",
          "maxLength": 24
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false,
      "description": "Crafting recipe payload (for upsert_recipe)."
    },
    "roleIncome": {
      "type": "object",
      "properties": {
        "incomeId": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,40}$"
        },
        "roleId": {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        "roleName": {
          "type": "string",
          "maxLength": 60
        },
        "mode": {
          "type": "string",
          "enum": [
            "collect",
            "automatic"
          ]
        },
        "targetWallet": {
          "type": "string",
          "enum": [
            "cash",
            "bank"
          ]
        },
        "amountType": {
          "type": "string",
          "enum": [
            "fixed",
            "percent"
          ]
        },
        "amount": {
          "type": "integer",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "intervalSeconds": {
          "type": "integer",
          "minimum": 60,
          "maximum": 2592000
        },
        "announceChannelId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{17,22}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "roleId",
        "amount"
      ],
      "additionalProperties": false,
      "description": "Role income rule payload (for upsert_role_income)."
    },
    "customReply": {
      "type": "object",
      "properties": {
        "replyId": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,40}$"
        },
        "command": {
          "type": "string",
          "enum": [
            "work",
            "adventure",
            "crime",
            "rob"
          ]
        },
        "outcome": {
          "type": "string",
          "enum": [
            "success",
            "fail"
          ]
        },
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 400
        }
      },
      "required": [
        "command",
        "text"
      ],
      "additionalProperties": false,
      "description": "Custom command reply template containing {amount} (for upsert_custom_reply)."
    },
    "targetId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,64}$",
      "description": "Item, recipe, role income, or reply ID for delete_* actions."
    },
    "planId": {
      "type": "string",
      "maxLength": 128,
      "description": "Approved preview plan ID required when applying a destructive delete_* action directly."
    },
    "confirmationToken": {
      "type": "string",
      "maxLength": 128,
      "description": "Single-use confirmation token returned by preview mode for destructive delete_* actions."
    }
  },
  "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

actionstringOptional (update_config)

Economy sub-operation to perform.

Allowed: update_config | upsert_store_item | delete_store_item | upsert_recipe | delete_recipe | upsert_role_income | delete_role_income | upsert_custom_reply | delete_custom_reply

configobjectOptional

Economy guild configuration fields (for update_config).

storeItemobjectOptional

Store item payload (for upsert_store_item).

recipeobjectOptional

Crafting recipe payload (for upsert_recipe).

roleIncomeobjectOptional

Role income rule payload (for upsert_role_income).

customReplyobjectOptional

Custom command reply template containing {amount} (for upsert_custom_reply).

targetIdstringOptional

Item, recipe, role income, or reply ID for delete_* actions.

planIdstringOptional

Approved preview plan ID required when applying a destructive delete_* action directly.

confirmationTokenstringOptional

Single-use confirmation token returned by preview mode for destructive delete_* actions.

Example

Preview creating a cosmetic store item that grants a safe Discord role.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "configure_economy",
    "arguments": {
      "guildId": "1200000000000000000",
      "mode": "preview",
      "action": "upsert_store_item",
      "storeItem": {
        "name": "Gold Star Badge",
        "price": 5000,
        "roleId": "1300000000000000022"
      }
    }
  }
}

Response

Validated preview, human approval link for deletions, or saved economy record.

Structured Tool Resultjson
{
  "mode": "preview",
  "action": "upsert_store_item",
  "valid": true,
  "summary": "Create economy store item \"Gold Star Badge\"",
  "roleSafetyChecks": {
    "1300000000000000022": "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.
HUMAN_APPROVAL_REQUIREDDestructive 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_REQUIREDconfirmed 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.
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.
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

  • Routes all reads and writes exclusively to the isolated taicket_economy database.
  • Verifies auditLogChannelId, channelIds, passiveIncome.chatChannelIds, and roleIncome.announceChannelId against live guild channels.
  • Rejects unsafe or administrative roles in store items, loot crate outcomes, and crafting recipes.
  • Requires mcp:destructive scope and browser-verified human approval before deleting store items, recipes, role income rules, or custom replies.