Skip to main content
Glama

history

Destructive

Undo or redo the top step in Ableton Live's native undo stack; inspect state after each action because batch edits can split into multiple steps.

Instructions

Revert (undo) or reapply (redo) the top entry in Live's native Undo history.

A native batch can split into multiple Live Undo steps: inspect state after each undo rather than blindly replaying a fixed count.

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": {
      "action": "<action>"
    },
    "name": "history"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the mutation signal is covered. The description adds non-obvious behavior beyond that: only the top entry is affected, and a single native batch may decompose into several Undo steps, which is exactly the kind of hidden semantics that prevents incorrect bulk replay.

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: the first states the action and its scope, the second delivers the operational caveat. Nothing is redundant and the key constraint is front-loaded.

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?

An output schema exists, so return values need not be explained, and the destructive annotation plus the batch-splitting caveat cover the main risks of calling this. The only gap is what happens at the boundary (empty history, or redo after a new edit), which an agent might reasonably want to know.

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

Parameters4/5

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

Schema coverage is 0%, but the single parameter is an enum whose values are glossed in the description ('undo' = revert, 'redo' = reapply), which is more than the bare enum names provide. Given only one self-describing parameter, this is close to fully covered, though it does not discuss behavior when history is empty.

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?

The description gives a specific verb pair (revert/redo) and a specific resource (Live's native Undo history), and narrows scope to 'the top entry', so an agent knows exactly what is affected. It does not explicitly contrast itself with related siblings like batch_commands or apply_recipe, which keeps it below a 5.

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?

There is real procedural guidance: 'inspect state after each undo rather than blindly replaying a fixed count', which tells the agent to iterate rather than issue a computed number of undos. However, there is no explicit when-to-use vs. when-not-to-use or any named alternative for reversing changes, so usage is implied rather than fully routed.

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