Skip to main content
Glama

Undo recent changes

undo
Destructive

Undo — revert, roll back, take back, or cancel the last — a recent schedule / confirm_schedule booking, a write_events / delete_events batch, a review_day action, a manage_backlog call (capture, update, remove, schedule, park), or a manage_categories call (create, update, delete). Pass tokens: the undoToken those calls returned. Each works only while still active and before its expiresAt (30 minutes). A schedule / confirm_schedule token deletes the events that call booked and voids its open proposals; the other tokens reverse the whole change (delete what it created, restore what it changed or removed). To discard a whole day's reflection by date instead, use review_day with action 'discard'. Returns per-token results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokensYesThe `undoToken` that an earlier write returned. Every write that can be reversed returns one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / tokens / description
      Previous value: -"undoToken(s) returned by schedule, confirm_schedule, write_events, delete_events, review_day, or manage_backlog (incl. a `batchUndoToken`)."New value: +"The `undoToken` that an earlier write returned. Every write that can be reversed returns one."
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changed
    • changedInput schema / properties / tokens / description
      Previous value: -"undoToken(s) returned by schedule, confirm_schedule, write_events, delete_events, or review_day (incl. a `batchUndoToken`)."New value: +"undoToken(s) returned by schedule, confirm_schedule, write_events, delete_events, review_day, or manage_backlog (incl. a `batchUndoToken`)."
  4. Changed1 schema field changed
    • changedInput schema / properties / tokens / description
      Previous value: -"The undoTokens from schedule/confirm_schedule."New value: +"undoToken(s) returned by schedule, confirm_schedule, write_events, delete_events, or review_day (incl. a `batchUndoToken`)."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Although annotations already mark the tool as destructive, the description goes beyond those booleans by specifying what each token type reverses: schedule/confirm_schedule tokens delete booked events and void proposals, while other tokens undo creations, changes, or removals. This gives an agent concrete expectations about side effects and limits.

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 dense and informative, with the purpose front-loaded and the token mechanics explained after. The initial synonym string 'revert, roll back, take back, or cancel' is redundant, but the rest of the content is purposeful and earns its place given the breadth of reversible operations.

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 destructive, reversible-action tool with no output schema, the description covers the core essentials: what to pass, how long tokens are valid, what different tokens do, what is returned, and the sibling alternative for date-based discard. It does not detail failure behavior for expired or invalid tokens, but the constraints are stated clearly enough for an agent to invoke it correctly.

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?

The schema already documents the tokens parameter at 100% coverage. The description adds valuable context by clarifying that these are the undoToken values returned by prior writes, that they expire after 30 minutes, and that each token type has distinct reversal behavior. This meaningfully supplements the schema rather than merely repeating it.

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 clearly states the tool's purpose: undo a recent reversible operation by passing its undoToken. It explicitly enumerates which sibling operations produce such tokens, which distinguishes it from the other tools in scope. The verb 'undo / revert' is specific and matches the tool name without being a tautology.

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

Usage Guidelines5/5

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

The description gives explicit usage conditions: pass tokens containing the undoToken, works only while active before expiresAt (30 minutes), and returns per-token results. It also names the alternative approach for discarding a whole day via review_day with action 'discard', providing clear when-to-use vs when-not-to-use guidance.

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.