Skip to main content
Glama
Discord MCP - Discord server management MCP for AI agents

Discord MCP - Discord server management MCP for AI agents

Undo change

undo_change
Destructive

Reverts Discord server changes made through this MCP server—including created, edited, or deleted channels, roles, emoji, and settings—after a preview and confirmation.

Instructions

Undo changes made through discord-mcp, from their records: builds, any single create, edit, or delete of a channel or role, an emoji, sticker, or sound created or deleted (its file is saved first), permission edit, role given or taken, server settings edit. Use this rather than redoing things by hand: it has an exact copy of what was there. It deletes what a change created, puts back what it changed, and recreates what it deleted. A setting goes back only if it still holds the value the change set; anything changed since stays and is reported. Recreated items get new ids, and a deleted channel's messages cannot come back. Pass change_id for one change, since (a time) to undo every change made from then on, such as everything today, or change_ids for several; they are undone newest first. With none, the latest change not yet undone. The first call changes nothing and returns every step plus a confirm_token; repeat with the token to run it. If a step fails (a rate limit, say), calling it again finishes the rest. With change_id, only picks some of its items, such as one of several deleted emoji; the rest can be undone later.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "undo_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
onlyNoWith change_id: undo only these of its items, by name or id as the preview shows them.
guildNoGuild (server) name or ID. Omit to use the default guild.
sinceNoISO date-time: undo every change made at or after it.
dry_runNoIf true, nothing is changed: the result shows what this call would do.
change_idNoOne change, from list_changes or the tool that made it.
change_idsNoSeveral changes.
confirm_tokenNoThe token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.2
    • addedInput schema / properties / dry_run / description
      Added value: +"If true, nothing is changed: the result shows what this call would do."
    • addedInput schema / properties / only
      Added value: +{
      +  "description": "With change_id: undo only these of its items, by name or id as the preview shows them.",
      +  "items": {
      +    "maxLength": 200,
      +    "type": "string"
      +  },
      +  "maxItems": 250,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. Addedv1.4.2

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only flag destructive=true; the description goes far beyond by disclosing the revert semantics (deletes what was created, restores what changed, recreates what was deleted), the guard that a setting reverts only if it still holds the value the change set, that subsequently modified state is preserved and reported, that recreated items get new ids and deleted channel messages are unrecoverable. It also documents the mandatory two-step preview/confirm_token flow, which is the single most important behavioral fact for a destructive tool and is not inferable from annotations.

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 with purpose, then revert semantics, then parameter selection, then the confirmation flow — a sensible order for a destructive tool. It is a dense single block with no breaks and a few clauses that could be tightened (the long coverage parenthetical, the restated 'only' explanation at the end), so it is efficient but not maximally crisp.

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?

For a 7-parameter, zero-required destructive mutation with no output schema, the description supplies what an agent needs: what gets destroyed and what cannot be recovered, the preview-then-confirm interaction, idempotent retry after partial failure, and default behavior when no selector is passed. Nothing material about safe invocation is left unstated.

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

Parameters5/5

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

Schema coverage is 100%, so 3 is the baseline, but the description adds genuine semantics on top: the precedence and meaning of change_id vs since vs change_ids vs none, the ordering ('undone newest first'), and the otherwise cryptic 'only' parameter explained as picking individual items from a multi-item change (e.g. one of several deleted emoji) with the remainder undoable later. That is meaning the schema strings alone do not convey.

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 ('Undo changes made through discord-mcp, from their records') and enumerates the exact change classes covered — builds, channel/role create/edit/delete, emoji/sticker/sound, permission edits, role grants, server settings. That enumeration lets an agent decide coverage without consulting any other tool, and the contrast with 'redoing things by hand' frames it against manual siblings.

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?

Gives explicit selection guidance: change_id for one change, since for a time range ('everything today'), change_ids for several, none for the latest un-undone change, plus the per-item refinement via change_id + only. It also states the preferred alternative ('Use this rather than redoing things by hand') and the operational retry rule ('If a step fails ... calling it again finishes the rest').

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