Skip to main content
Glama

Undo edit

undo_project_edit
DestructiveIdempotent

Reverse this connection's saved document edit with guards that preserve other later changes. Supply a fresh newMutationId. Undo the returned edit to redo. This never reverses charges, reruns generation or changes an already exported file.

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": {
      "projectId": "<projectId>",
      "mutationId": "<mutationId>",
      "newMutationId": "<newMutationId>"
    },
    "name": "undo_project_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesProject id returned by list_projects.
mutationIdYes
newMutationIdYes

Output Schema

NameRequiredDescriptionDefault
outcomeYes
projectIdYes
mutationIdYes
videoEditIdNoPresent when outcome is STARTED. Poll GET /v1/projects/{projectId}/video-edits for this id to follow the background task.
editableVideoIdNo
projectRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the description's main added value is scoping the destruction: guards preserve later changes, and charges, generation reruns, and already-exported files are untouched. That is exactly the blast-radius context an agent needs before an irreversible operation. It does not mention permission or auth requirements, so it falls short of a 5.

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?

Four short sentences, front-loaded with the operation and its guard semantics, then the required fresh id, then the redo trick, then exclusions. Nothing is redundant, though 'Undo the returned edit to redo' is slightly telegraphic and could be phrased more plainly.

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?

With an output schema present, the description is not obliged to describe return values, and it covers exclusions and the redo pathway well for a destructive mutation. The remaining gap is provenance: it never says where mutationId comes from, which matters for a 3-required-parameter destructive call.

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 33% — only projectId is documented, so the description must carry mutationId and newMutationId. It adds genuine meaning for newMutationId ('fresh' — i.e., must be a new, unused id), but leaves mutationId undefined and does not state that it is the id returned by the original edit call.

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?

States a specific verb and resource: 'Reverse this connection's saved document edit,' narrowed by 'with guards that preserve other later changes.' An agent can distinguish it from edit_project (which applies an edit) without opening either schema. It stops short of naming the forward-edit sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real guidance on the redo pathway ('Undo the returned edit to redo') and a precondition ('Supply a fresh newMutationId'), which implies the tool is for reverting a prior edit made on this connection. It never states when NOT to use it or names edit_project as the alternative for making new changes, so routing is implied rather than explicit.

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.