Skip to main content
Glama

Undo my last edit

undo_my_edit
Destructive

Revert your newest saved canvas edit on a slate while keeping and listing changes others made since, so you only undo your own work.

Instructions

Take back your own newest canvas edit on a slate (never anyone else's); what someone changed since stays and is listed.

Undo. Takes back the newest canvas edit this caller saved on the slate with slates.applyOperations (notes, connections, slate settings) that is not undone yet: the same account and the same token, so it never takes back a person's or another agent's edit. Each note, connection and setting the edit changed goes back to how it was, unless someone else changed it since: that part stays as they left it and is listed in left[]. The undo is saved as an edit (the revision goes up, every open canvas shows it) and answers the run it undid (undone). Workshop and map edits are undone with undo_workshop_edit. An agent undoes by the rules its edits meet: 423 agents_paused while people paused agents, 409 needs_direct_edit unless a person lets it edit directly. 409 nothing_to_undo when no edit of the caller is left to undo; 409 slate_changed when the slate changed while it was being saved (call again).

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": {
      "shareId": "<shareId>"
    },
    "name": "undo_my_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
shareIdYesThe slate ID from its address: /canvas/<shareId>.
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only say destructiveHint=true and idempotentHint=false; the description goes well beyond that by explaining partial-undo semantics (conflicting changes stay and appear in left[]), that the undo itself is recorded as an edit bumping the revision, and which run is returned (undone). It also enumerates the failure modes 423 agents_paused, 409 needs_direct_edit, 409 nothing_to_undo, and 409 slate_changed with retry advice, which no annotation conveys.

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?

The critical scope constraint is front-loaded and the error codes are useful, but the description is dense and repeats the same point twice ('never anyone else's' / 'so it never takes back a person's or another agent's edit'). It is efficient in content but could shed one redundant clause.

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?

For a destructive mutation with no output schema, the definition supplies the side effects (revision bump, open canvases updated), the returned fields (left[], undone), the sibling handoff, and the full error taxonomy including the retryable case. Nothing an agent needs in order to call this safely is missing.

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 description coverage is 100%, and the schema already explains shareId, confirm, and idempotencyKey with patterns. The description only gestures at the confirmation flow ('An agent undoes by the rules its edits meet') without adding format or sequencing detail beyond the schema, so the baseline of 3 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?

The opening line states a precise verb and resource ('Take back your own newest canvas edit on a slate'), scopes it negatively ('never anyone else's'), and lists what survives. It also names the sibling that handles a different resource class ('Workshop and map edits are undone with undo_workshop_edit'), so an agent can discriminate without opening another schema.

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?

The description gives explicit routing rules: use this for slate content (notes, connections, slate settings), use undo_workshop_edit for workshop and map edits. It also covers the preconditions for the confirm flow and states the outcome for the no-op case (409 nothing_to_undo).

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

Deploy Server

Other Tools