Skip to main content
Glama

kilo_session_revert

Reverts a Kilo session to a previous message or checkpoint so an orchestrator can undo changes or steps after a wrong path.

Instructions

Revert a Kilo session back to a previous message/checkpoint. Allows the orchestrator to undo changes or steps if Kilo took a wrong path.

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": {
      "session_id": "<session_id>"
    },
    "name": "kilo_session_revert"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idNoOptional target message_id to revert back to
session_idYesThe session_id of the Kilo session to revert

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for what is clearly a destructive mutation. It says the tool 'undoes changes' but never states whether the revert is reversible, whether messages or file changes are discarded, whether existing work is preserved elsewhere, or what permissions are needed. That is a significant gap for a state-mutating operation.

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?

Two short sentences with no filler, and the core action is front-loaded in the first sentence. The second sentence adds rationale rather than repeating the first, so the structure is efficient.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the parameter schema is fully documented. But for a destructive, annotation-free mutation tool, the description omits key context about side effects and reversibility, leaving it only minimally adequate relative to its complexity.

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 description coverage is 100%, so both parameters are already documented in the input schema, and baseline is 3. The description adds a little nuance by framing message_id as a 'checkpoint' target, but it gives no default behavior when message_id is omitted, which is the main semantic question an agent would have.

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?

The description states a specific verb and resource: 'Revert a Kilo session back to a previous message/checkpoint.' That is concrete enough for an agent to know the operation. It does not explicitly contrast itself with related siblings such as kilo_session_fork, so it stops short of a 5.

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

Usage Guidelines3/5

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

The clause 'undo changes or steps if Kilo took a wrong path' gives an implied when-to-use condition aimed at the orchestrator. However, it never says when not to revert, what the alternative is (e.g., forking instead of reverting), or any prerequisites, leaving usage guidance implied rather than explicit.

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