commands_bulk_overwrite_global
Replace all global Discord commands with a new set, deleting any omitted. Re-sync canonical command lists from source-of-truth during CI deployments.
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}.
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 | |||