Skip to main content
Glama

Undo a photo change

photo_undo
Destructive

Take back your last call on the photo (action "undo"), or bring back the one undone last ("redo"). Nothing is lost: canvas_undo {action: "history"} lists every version and "restore" goes back to any of them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "photo_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo
canvasNo
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, it discloses the important behavioral trait that the undone state is retained and recoverable through canvas_undo 'history'/'restore'. The phrase 'Nothing is lost' sits in mild tension with destructiveHint=true, because the current state does change, but the claim is about recoverability rather than about the operation being a no-op, so it is mitigation rather than contradiction. Nothing is said about how stale or conflicting state is handled.

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?

Two sentences, no filler: the core undo/redo semantics come first and the escape hatch to version history follows. Every clause carries information an agent would otherwise have to guess.

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

Completeness3/5

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

For a tool with annotations covering the safety profile and with no output schema, the description covers the undo/redo concept and the recovery path adequately. It is incomplete on the two undocumented parameters and on what the call returns (e.g. a new revision), which matters since the schema offers no help.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, and it only covers 'action' (whose values the enum already shows). Neither 'canvas' (which canvas/photo is affected) nor 'expected_revision' (presumably an optimistic-concurrency guard and the likely source of failures) is explained anywhere.

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?

It states a specific verb+resource pair ('take back your last call on the photo' / 'bring back the one undone last') and maps them to the two enum values, so an agent knows exactly what the tool does. It also separates the tool from the sibling canvas_undo by reserving history/restore for it.

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?

The description gives explicit routing: use this tool for the one-step undo/redo, and use canvas_undo with action 'history' or 'restore' when you need to move to an arbitrary version. It does not state any conditions under which the tool should not be used (e.g. after an external change), which is the only gap.

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.