Skip to main content
Glama

Undo last changeset

undo_changeset

Roll back the most recently committed changeset, restoring modified files byte-for-byte and deleting files it created. Call repeatedly to step back through earlier commits.

Instructions

Roll back the most recently committed changeset from its journal: modified files are restored byte-for-byte, files it created are deleted. Call repeatedly to step back through earlier commits. Edits made to those files after the commit are overwritten too. Refused while a changeset is open (while one is open, reads reflect its staged edits and nothing is on disk until commit). The RPG Maker editor must stay closed while the server edits the project.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.1

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that post-commit edits are overwritten, that created files are deleted, that the operation is refused while a changeset is open, and that the RPG Maker editor must be closed. Those are exactly the destructive-precondition and environmental facts an agent needs before invoking it.

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 the core action and its effects, followed by repetition behavior, side effects, refusal condition, and environment requirement — each sentence adds information. The nested parenthetical about staged reads is slightly dense but still informative rather than redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool with no annotations and no output schema, the description covers action, side effects, preconditions, and environment constraints. Only minor gaps remain, such as behavior when there is no prior commit to undo or what is returned on success versus refusal.

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?

The tool takes zero parameters, so there is nothing schema-level to clarify; the description correctly describes the operation as acting on the most recent changeset without inventing arguments. Baseline for a parameterless tool 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 — roll back the most recently committed changeset from its journal — and enumerates the concrete effects (modified files restored byte-for-byte, created files deleted). This distinguishes it cleanly from begin_changeset, commit_changeset, and discard_changeset without needing their schemas.

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?

'Call repeatedly to step back through earlier commits' tells the agent how to undo more than one commit, and 'Refused while a changeset is open' defines the exclusion condition that should route it to discard_changeset instead. It stops short of naming discard_changeset explicitly as the alternative, so it is clear context rather than full routing guidance.

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