Skip to main content
Glama

Undo or redo

undo_redo

Revert or reapply one live OpenUtau edit; requires the bridge, and file-mode edits cannot be undone.

Instructions

Undo or redo one edit in OpenUtau (each live tool call is one undo step). Needs the bridge; file-mode edits (path=) cannot be undone. Returns the project summary like get_project. / OpenUtau で編集を1回取り消す・やり直します(ライブ操作1回 = 1単位)。path 指定の編集は取り消せません。概要を返します。

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": "undo_redo"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo"undo" reverts the last edit, "redo" re-applies the last undone one. / 取り消し・やり直しundo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only say it is non-read-only, non-idempotent, non-destructive; the description adds real context: the one-call-equals-one-undo-step granularity, the bridge dependency, and the file-mode limitation. It does not explain what happens when the undo stack is empty (no-op? error?), which is the main remaining behavioral unknown.

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?

Front-loaded with the operation and scope, and the constraint about path= edits is placed before the return-value note. The fully duplicated Japanese translation takes roughly half the length without adding new information for an agent reading English.

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 tool with no output schema, it covers what the tool does, its unit of granularity, its dependency, its limitation, and its return value ('project summary like get_project'). Nothing an agent needs to call it correctly 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 coverage is 100% and the single 'action' enum is fully documented in-schema, so the baseline of 3 applies. The description adds only the call-granularity note, not per-value meaning for undo vs redo beyond what the schema already states.

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 concrete verb pair (undo/redo) and resource (one edit in OpenUtau), plus the crucial unit-of-operation rule 'each live tool call is one undo step'. No sibling tool overlaps with this function, so differentiation is implicit rather than stated.

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?

Gives a clear precondition ('Needs the bridge') and an explicit exclusion ('file-mode edits (path=) cannot be undone'), which tells the agent when this tool will not work. It stops short of naming what to do instead when the bridge is unavailable or the edit came from file mode.

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