Skip to main content
Glama

ass_undo_history

List available undo and redo steps for an ASS subtitle document, with snapshot summaries, so you can pick the change to restore.

Instructions

List the undo steps available for a document.

The workspace keeps raw document snapshots and no labels, so the entries are positional: step 1 is the oldest available snapshot, the highest step is what :func:ass_undo would restore next. Each entry carries a summary of the snapshot (line count, first start time, line count difference from the current state) so it is still possible to tell the steps apart.

Returns {"doc_id", "undo_depth", "redo_depth", "entries": [{"step", "label", "lines", "first_start"}...], "redo_entries": [...], "next_undo", "next_redo"}. Line indices are 0-based.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains that snapshots are raw and unlabeled, that entries are positional from oldest to newest, what each entry summary contains (line count, first start time, line count difference), and that line indices are 0-based. It stops short of explicitly declaring the operation read-only or noting any permission needs, but 'List' implies a safe read.

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?

The description is front-loaded with the core purpose and structured logically into behavior then return shape. It is moderately sized and generally earns its place, though the explicit Returns block is partly redundant because an output schema already exists. No major waste beyond that duplication.

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?

For a one-parameter list tool with no annotations, the description covers the operational behavior (positional steps, summary fields, ordering) and even restates the return structure. The main missing piece is any semantic for the doc_id parameter, which leaves a small operational gap. Otherwise it is complete enough for an agent to call correctly.

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?

The single parameter doc_id has 0% schema description coverage, and the description never mentions it, leaving the agent with no explanation of what doc_id represents or what null/default means. The return payload references a 'doc_id' field but that does not clarify the input. The description fails to compensate for the schema gap.

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 opens with a specific verb and resource: 'List the undo steps available for a document.' It distinguishes itself from the sibling ass_undo by explaining that the highest step is what ass_undo would restore next. An agent can tell this tool inspects history without opening either schema.

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?

Usage is implied rather than stated: the agent can infer this tool is for inspecting undo history before taking action, but there is no explicit 'use this when' instruction or any exclusion versus ass_undo or ass_redo. The reference to ass_undo describes the data, not when to choose this tool over alternatives.

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

Deploy Server

Other Tools