Skip to main content
Glama

Undo changes

revert_revisions
Destructive

Undoes a batch of changes (batch_id) or chosen revisions, newest first: restores old values, un-deletes, or removes what was created. If something was edited again since, nothing is reverted and the conflicts are listed; resend with force: true to overwrite. The undo is itself undoable. Call it only when the user has just asked to undo these changes.

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": {
      "drama_id": "<drama_id>"
    },
    "name": "revert_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNotrue reverts even when the item changed again since; false (default) refuses then.
batch_idNoUndo every change made by one call (its batch id from list_revisions).
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
revision_idsNoOr undo these individual revisions (ids from list_revisions).

Output Schema

NameRequiredDescriptionDefault
skippedYes
revertedYes
overwrittenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by describing the conflict refusal path ('nothing is reverted and the conflicts are listed'), the force override, ordering ('newest first'), and that the undo is itself undoable. These are exactly the mutation behaviors an agent needs before invoking a destructive 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?

Single dense paragraph, front-loaded with the core action and the safety-relevant conflict behavior. Every sentence carries actionable information; nothing is redundant with the title or annotations.

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?

An output schema exists, so return values need not be explained. The description covers mode selection, failure mode, override, reversibility, and invocation timing — everything required to call this destructive tool correctly.

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 baseline is 3; the description adds real meaning by pairing batch_id with 'a batch of changes' and explaining force as the conflict-overwrite switch tied to the refusal behavior. It does not add format details, but the schema already supplies those.

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 ('Undoes a batch of changes (batch_id) or chosen revisions') and enumerates the three concrete effects: restores old values, un-deletes, or removes what was created. This is clearly distinguishable from list_revisions and other siblings.

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 an explicit guard: 'Call it only when the user has just asked to undo these changes,' which excludes speculative or proactive use. It also implicitly selects between the in-tool modes (batch_id vs revision_ids) but does not name sibling tools as alternatives.

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.