Skip to main content
Glama
discord-mcp

discord-mcp

commands_bulk_overwrite_guild

DestructiveIdempotent

Atomically replace a Discord guild's command registry, deleting any commands not included in the new list. Use it to sync or clear guild-scoped commands; an empty array removes all.

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}.

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>",
      "guild_id": "<guild_id>",
      "commands": "<commands>"
    },
    "name": "commands_bulk_overwrite_guild"
  }
}

Input 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

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.4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing atomicity, the exact deletion semantics for omissions and for an empty array, and the two-part authorization gate (`__confirm:true` plus `MCP_DRY_RUN=false` with a DRY_RUN_PREVIEW fallback). That is the kind of operational detail an agent needs before invoking a destructive bulk write.

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

Conciseness4/5

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

Front-loaded 'Purpose' label, then Caution, Security, and Returns – easy to scan with no filler sentences. The Returns line is mildly redundant given an output schema exists, but it is short and informative.

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?

Covers scope, destructive semantics, prerequisites, gating, and expected outcome for a high-risk bulk mutation with nested command payloads. Nothing an agent needs to avoid an accidental wipe is missing.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents `commands`, `__confirm`, `guild_id`, and `application_id` in detail, including the replace/empty-array semantics and the dry-run requirement. The description restates rather than extends that, so the baseline 3 applies.

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?

States a specific verb and resource ('Atomically REPLACE the guild-scoped command registry') and pins the scope to a single guild, which separates it from commands_bulk_overwrite_global and the incremental commands_modify_guild.

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

Usage Guidelines4/5

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

Gives a concrete pre-flight step ('call commands_list_guild first to confirm scope') and spells out the degenerate case (empty array deletes everything). It does not explicitly name an alternative for partial updates, but the wholesale-replace framing makes the when-not obvious.

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