Skip to main content
Glama

arcwright_rollback

Undo a failed task by restoring every file it changed to its pre-run state from Arcwright checkpoints in a git repo; files edited afterward stay untouched and are listed unless force is true.

Instructions

Undo a task: put every file it changed back as it was before its first run, from Arcwright's checkpoints (needs the project to be in a git repository). A file edited since the task finished is left as it is and listed, unless force is true. Use it when a task went wrong and starting over is simpler than fixing it; tell the user what was put back.

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": {
      "task_id": "<task_id>"
    },
    "name": "arcwright_rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoAlso put back files edited since the task finished (their later edits are lost). Only when the user agrees.
task_idYes
project_dirNoAbsolute path of the project folder the agents work in. Defaults to the current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.0

TDQS

A4/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 discloses the git-repository prerequisite, that in-flight edits are skipped and listed, that force discards later edits, and that the user should be informed. It omits what happens if the task is still running or what the response contains, but the core behavior and risks are surfaced.

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?

Three sentences, each doing distinct work: core action plus precondition, the force edge case, then usage and user-communication guidance. The first sentence is long and slightly run-on, but nothing is redundant.

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 mutation tool with no annotations and no output schema, the description covers prerequisites, default safe behavior, the destructive override, and the post-call expectation. Remaining gaps (running-task state, error behavior for non-git projects) are minor.

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 67% and the description meaningfully extends it: it explains that force overrides the default skip-and-list behavior for files edited since completion, and ties task_id to the task being undone. project_dir is left to the schema, which documents it adequately.

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?

States a specific verb and resource — 'Undo a task: put every file it changed back as it was before its first run' — plus the checkpoint source. It is clearly distinguishable from siblings like cancel or get_task, though it never names an alternative explicitly.

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 an explicit when-to-use condition ('when a task went wrong and starting over is simpler than fixing it') and a follow-up obligation ('tell the user what was put back'). It does not address the boundary with siblings such as arcwright_cancel for a still-running task, so exclusion guidance is incomplete.

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