Skip to main content
Glama

ck_rollback

Destructive

Revert an agent's changes with governed rollback, using git checkpoints and auditing to prevent downstream dependency issues.

Instructions

Execute a governed rollback of an agent's work. Records a git checkpoint before each task and provides a single action to revert. Safety-checked: refuses if downstream tasks depend on the changes. Creates an audit finding on every rollback. Modes: checkpoint (capture git HEAD before task), execute (revert agent's changes), status (check snapshot state), list (all snapshots for session).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoOperation mode. Defaults to status.
reasonNoReason for rollback. Recorded in audit finding.
task_idNoTask identifier. Required for checkpoint, execute, and status modes.
session_idYesSession identifier.
project_rootNoAbsolute path to the project root.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
shaNo
modeNo
statusNo
task_idNo
revertedNo
snapshotsNo
Behavior5/5

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

Beyond annotations (destructiveHint=true), description adds that it creates an audit finding on every rollback and refuses if downstream tasks depend on changes. This provides critical behavioral context.

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?

Description is four sentences, front-loaded with the main purpose. Every sentence adds value without redundancy or verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (5 parameters, 4 modes, output schema exists), the description covers safety, audit, git checkpoint, all modes, and parameter requirements. The output schema handles return values, so no gap.

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 100%, so baseline is 3. Description adds defaults (mode defaults to status) and indicates conditional requirements (task_id required for certain modes). The reason parameter's purpose in audit finding is clarified.

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?

Description starts with 'Execute a governed rollback of an agent's work,' clearly stating the verb and resource. It lists four modes (checkpoint, execute, status, list) which distinguish it from sibling checkpoint tools like ck_checkpoint_create and ck_checkpoint_restore.

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?

Description explains when to use: for rollback with safety check (refuses if downstream dependencies). It implicitly excludes other scenarios but lacks explicit alternatives or when-not-to-use. The safety check provides clear context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aryaminus/controlkeel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server