Skip to main content
Glama

undo_last_vault_change

Undoes the newest vault commit by removing nodes it created or restoring changed/deleted nodes as a new commit; pass a commit hash to undo only that specific change.

Instructions

Undo the newest vault commit: a node it created is removed, a node it changed or deleted is put back as before. Recorded as a new commit, so calling it again undoes the undo.

Use it right after a write that went wrong. If other writes came after the mistake, use history_vault and restore_vault on the one node instead. Pass commit (the hash the bad write returned, at least 7 characters) to undo only that change: if a newer one has landed since, nothing is undone and an error is returned. Tell the user what you undid. Returns {undone, undone_commit, files, commit}.

Input Schema

NameRequiredDescriptionDefault
commitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that the undo is itself recorded as a new commit (so calling again redoes the change), that a stale `commit` causes nothing to be undone plus an error, and what the mutation does node-by-node.

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?

Roughly ninety words, front-loaded with the core action before alternatives and edge cases. Every sentence adds information: semantics, trigger, fallback, parameter rule, and return shape.

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 single-parameter mutation tool with no output schema, it covers semantics, error behavior, and the return payload name list. The one uncovered case is what happens when the vault has no commit to undo, which an agent would want to know.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does: `commit` is identified as the hash returned by the bad write, with a minimum length of 7 characters, an omitted-value default (newest commit), and a precise stale-hash failure mode.

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 names a specific verb and resource (undo the newest vault commit) and then spells out the per-node semantics: a created node is removed, a changed or deleted node is restored. It explicitly distinguishes itself from history_vault and restore_vault, so an agent can route correctly without opening any schema.

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?

It gives an explicit trigger ('Use it right after a write that went wrong') and an explicit exclusion with the alternative to use instead when later writes have landed. It also pins down when the `commit` argument should be supplied, which is the main selection nuance for this tool.

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