Skip to main content
Glama

Undo Threesmith writes

three_undo
Destructive

Undo recent Threesmith project writes newest first: restore modified files, remove new files, and optionally list the journal or force reverts of hand-edited files.

Instructions

Undo the last Threesmith writes in the project (three_fix and other writes), newest first: files are put back as they were, new files removed. A file changed by hand since the write is left alone unless force is true. list: true only shows the journal.

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

Input Schema

NameRequiredDescriptionDefault
listNo
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
forceNo
stepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotency; the description goes further by disclosing ordering (newest first), the restore/remove semantics, and the manual-edit protection with its force override. It does not say whether an undo can itself be undone or what happens when the journal is empty, leaving some destructive-scope questions open.

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?

One dense, front-loaded sentence with the effect stated before the exceptions and flags; nothing is filler. The parenthetical '(three_fix and other writes)' and the compressed flag clauses are slightly terse but still parse cleanly.

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, zero-required-parameter tool with no output schema, this covers effect, ordering, safeguards, and the read-only inspection mode adequately. The remaining gap is `steps` semantics and empty-journal behavior, which matter for an agent deciding how many undos to run.

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 only 25%, and the description supplies real meaning for two of the four parameters: `force` overrides the hand-modification safeguard and `list` switches to journal-only output. `steps` is never explained (no default, no note that it caps at 40), and `path` is left entirely to the schema.

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?

States the verb (undo), the resource (last Threesmith writes in the project), names the originating sibling (three_fix and other writes), and describes the concrete effect: files restored, new files removed, newest first. An agent can distinguish this from every other three_* tool without opening a schema.

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 clear operational context: this reverses prior writes newest-first, hand-edited files are protected unless force is true, and `list: true` switches to journal-only inspection. It lacks an explicit 'do not use when...' or a statement of what to run instead once the journal is exhausted, so it falls short of full routing guidance.

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