commands_bulk_overwrite_global
Replace the entire global Discord command registry in one atomic operation, deleting any commands omitted from the supplied list; use it to sync a canonical command set during CI deploys.
Instructions
Purpose: Atomically REPLACE the entire global command registry. Any commands not in commands are deleted.
When to use: - CI deploy: re-sync the canonical command list from source-of-truth.
Caution: this is a wholesale replace - call commands_list_global first to confirm scope. An EMPTY array deletes every global command.
Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually apply the replace.
Returns: {commands:[{id, name, type}], count}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application_id": "<application_id>",
"commands": "<commands>"
},
"name": "commands_bulk_overwrite_global"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | Full set of commands to register globally (REPLACES the existing registry; an empty array deletes every command). | |
| __confirm | No | Set true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned. | |
| application_id | Yes | Bot/app application ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||