commands_bulk_overwrite_global
commands_bulk_overwrite_global
Section titled “commands_bulk_overwrite_global”Category: commands
Atomically REPLACE the entire global command registry. Any commands not in commands are deleted.
When to use
Section titled “When to use”- CI deploy: re-sync the canonical command list from source-of-truth.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
commands | array | yes | Full set of commands to register globally (replaces existing registry). |
Returns
Section titled “Returns”\{commands:[\{id, name, type\}], count\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
commands | array | yes | |
count | number | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |
Source
Section titled “Source”packages/mcp-core/src/tools/commands/bulk_overwrite_global.ts