Skip to main content
Glama
This connector has been deprecated in the official MCP Registry

Replaced by ronda.

Moved to com.useronda/ronda

Undo changes

undo_changes
DestructiveIdempotent

Return the session's code to the state right after a given change: files changed later are restored in one new commit on the session branch (history is kept; the preview updates). Pending uncommitted edits are committed first. Use when the user asks to go back to an earlier state, or from the session panel's Undo button.

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": {
      "sessionId": "<sessionId>",
      "keepThroughEditId": "<keepThroughEditId>"
    },
    "name": "undo_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
sessionIdYesThe ronda session id, from open_session or list_sessions.
expectedStateNoSet by ronda cards; omit. The state of the session's code the card showed; a different current state refuses the undo.
keepThroughEditIdYesThe editId of the change to go back to: its changes stay, every later change is undone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description adds real behavior beyond the annotations: it discloses that history is kept via a new commit rather than rewritten, that later changes are undone, and that pending uncommitted edits are committed first. This usefully qualifies the destructiveHint=true by showing the destruction is limited to later commits. It does not state what the tool returns (new commit or edit id) or whether failures leave partial state.

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?

Three sentences, front-loaded with the core effect, followed by side effects and then the usage trigger. Every sentence carries information and there is no filler. The parentheticals ('history is kept; the preview updates') pack two facts into one clause, which is dense but readable.

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 five-parameter mutation tool with no output schema, the description covers the mutation semantics, side effects, and trigger well. The notable gap is the return value: with no output schema, the agent is not told whether it receives a new edit id, commit hash, or diff, which matters for chaining follow-up calls.

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

Parameters3/5

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

Schema coverage is 100%, so keepThroughEditId, sessionId, expectedState, context, and llm_model are already documented in the schema. The description restates the keepThroughEditId semantics ('its changes stay, every later change is undone') without adding syntax or edge-case detail. It does clarify the side effect on uncommitted edits, which slightly affects how expectedState behaves, but that is marginal over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a precise verb and resource: 'Return the session's code to the state right after a given change,' and then explains the mechanism (later files restored, one new commit, history kept). An agent knows exactly what operation this is. It stops short of naming a sibling such as show_changes or get_diff as the non-mutating alternative, so it does not fully earn the sibling-differentiation credit.

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?

It states a clear trigger: 'Use when the user asks to go back to an earlier state, or from the session panel's Undo button.' That covers both conversational and UI origins. It does not say when not to use it or point to an alternative for inspecting history instead of reverting it.

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