Undo change
undo_changeReverts 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
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | With change_id: undo only these of its items, by name or id as the preview shows them. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| since | No | ISO date-time: undo every change made at or after it. | |
| dry_run | No | If true, nothing is changed: the result shows what this call would do. | |
| change_id | No | One change, from list_changes or the tool that made it. | |
| change_ids | No | Several changes. | |
| confirm_token | No | The 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. |