Skip to main content
Glama

Undo the last edit

undo_edit

Use this when the user wants the last change to a clip or photo taken back: "undo that", "I liked it better before". Restores the version saved before the last edit; calling again steps further back (the last 20 saves are kept for 7 days). Not for: deleting a clip (done in RipClip). Costs no Horizon Units. Returns job_id; job_status waits for it.

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": {
      "clip_id": "<clip_id>"
    },
    "name": "undo_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idYesClip or photo id from list_clips.

Output Schema

NameRequiredDescriptionDefault
nextYes
notesYes
job_idYes
statusYes
changedYes
clip_idYes
editor_urlYes
estimated_huNo
voiceover_job_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / clip_id / description
      Added value: +"Clip or photo id from list_clips."
    • removedInput schema / properties / clip_id / title
      Removed value: -"Clip Id"
    • removedInput schema / title
      Removed value: -"undo_editArguments"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real behavioral context beyond them: the restore target is the pre-edit saved version, up to 20 saves are retained for 7 days, repeated calls walk further back (which explains the idempotentHint=false annotation), and the call consumes no Horizon Units. It also says a job_id is returned and that job_status is the follow-up, which the agent needs to complete the workflow.

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?

Three short sentences, each carrying distinct information: trigger conditions, the exclusion, and the state/return behavior. Nothing is repeated from the schema or annotations, and the usage guidance is front-loaded before the operational details.

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 one-parameter mutation tool with full schema coverage and an output schema, this is complete: the agent knows when to invoke it, what state it restores, how repeated calls behave, that it is free, and how to follow up on the returned job_id. No gap remains that would cause a misinvocation.

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% for the single clip_id parameter, so the schema already carries the definition. The description adds only that the target may be a clip or a photo, which is mild extra meaning rather than syntax or constraint detail. Baseline 3 applies when the schema does the heavy lifting.

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 description names a specific action (restore the version saved before the last edit) on a specific resource (a clip or photo), and explicitly carves out what it is not for: "Not for: deleting a clip (done in RipClip)." An agent can distinguish it from delete_clip and the other edit_* siblings without opening any 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?

It gives concrete user phrasings that should trigger the tool ("undo that", "I liked it better before"), states the exclusion (deleting a clip) and where that belongs instead, and explains the repeat-call semantics: calling again steps further back through the retained saves. When-to-use, when-not-to-use, and alternative routing are all present.

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