Skip to main content
Glama

Undo a change

undo_change
Destructive

Use this when the user wants a change made with AiGuild undone, within 24 hours: one change (change_id from get_recent_changes), a whole card (card_id), or their latest change. Free. Server administrators can undo any change on the server; other staff only their own. Undoing a change that needed confirmation on aiguild.me is only done there. Do not use for final changes such as a giveaway draw or an XP reset.

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": {
      "guild_id": "<guild_id>"
    },
    "name": "undo_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idNoA card ID, to undo the whole card.
guild_idYesDiscord server ID, as returned by list_my_servers.
change_idNoThe change ID from get_recent_changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag the operation as destructive, open-world, and non-idempotent, and the description adds substantial context beyond them: the 24-hour limit, permission tiers, free-of-charge status, and the requirement to undo confirmation-gated changes on aiguild.me. These details materially affect whether and how an agent should invoke the tool.

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?

Front-loads the primary use case, then packs eligibility, scope, and exclusions into a few dense sentences without redundant wording. Every sentence adds operational value.

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?

Given that this is a destructive, permission-sensitive mutation tool with no output schema, the description covers the crucial decision points: time window, permissions, supported targets, external confirmation behavior, and exclusions. Nothing essential for correct invocation appears to be missing.

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 coverage is 100%, so the baseline is 3, but the description adds selection semantics by explaining that change_id targets one change from get_recent_changes, card_id targets a whole card, and omitting either supports undoing the latest change. It does not need to re-explain guild_id because the schema already does.

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 a change,' and enumerates three supported scopes: one change via change_id, a whole card via card_id, or the user's latest change. It also distinguishes the tool from get_recent_changes by naming it as the source of change_id.

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 when-to-use conditions, including the 24-hour window and the three supported undo targets. It also states eligibility rules for server administrators versus other staff, points confirmed changes to aiguild.me, and explicitly excludes final changes such as giveaway draws or XP resets.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources