Skip to main content
Glama
cappyeo

discord-mcp

commands_bulk_overwrite_guild

DestructiveIdempotent

Atomically replace all slash commands for a Discord guild. Commands missing from the list are deleted; an empty array removes every command. Confirmation required before changes apply.

Instructions

Purpose: Atomically REPLACE the guild-scoped command registry. Any commands not in commands are deleted from this guild. An EMPTY array deletes every command in this guild.

Caution: this is a wholesale replace - call commands_list_guild first to confirm scope.

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

TableJSON Schema
NameRequiredDescriptionDefault
commandsYesFull set of commands to register in this guild (REPLACES the existing registry; an empty array deletes every command).
guild_idYesGuild scope
__confirmNoSet 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_idYesBot/app application ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.28.0
    • removedInput schema / $defs / __schema0 / properties / choices / items / properties / value / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / $defs / __schema0 / properties / choices / items / properties / value / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / commands / items / properties / default_permission / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / commands / items / properties / default_permission / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / commands / items / properties / dm_permission / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / commands / items / properties / dm_permission / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv0.22.0

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds significant behavioral context beyond the annotations: it explains the atomic replace semantics, the empty-array deletion behavior, the confirmation requirement, and the dry-run behavior. The annotations already declare destructiveHint=true and idempotentHint=true, and the description aligns with these while adding the crucial detail about `__confirm:true` and `MCP_DRY_RUN=false`. It doesn't contradict the annotations. Minor deduction because it doesn't explicitly mention rate limits or partial failure behavior, but the added context is strong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (Purpose, Caution, Security, Returns) and front-loads the most critical information about the destructive replace behavior. Every sentence earns its place: the purpose, the caution, the security requirement, and the return format. No wasted words or redundant restating of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete for a destructive bulk operation. It covers the purpose, the destructive scope, the prerequisite check, the security gating, and the return format. The output schema exists, so the return format description is a helpful addition rather than a necessity. The complexity of this tool (atomic replace, confirmation, dry-run) is fully addressed within the description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters. The description adds value by explaining the `commands` parameter's replace semantics ('an EMPTY array deletes every command') and the `__confirm` parameter's role in authorizing the destructive operation. It doesn't add syntax details for `application_id` or `guild_id`, but those are already clear from the schema descriptions. This exceeds the baseline 3 for full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('REPLACE') and resource ('guild-scoped command registry'), and explicitly distinguishes the behavior from other command tools by noting that commands not in `commands` are deleted. It also clearly differentiates from sibling tools like `commands_create_guild` and `commands_modify_guild` by emphasizing the atomic wholesale replace semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells the agent when to use this tool ('call `commands_list_guild` first to confirm scope') and provides a caution about the destructive nature. It also names the alternative (`commands_list_guild`) and explains the security gating (`ConfirmRequired`, `MCP_DRY_RUN=false`), giving clear context for when this tool is appropriate versus other command-related tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools