Skip to main content
Glama
qddfxp

conversation-branch

by qddfxp

cb_rollback

Destructive

Roll back the mainline conversation to an archived version using a version number or archive directory name, requiring explicit user approval.

Instructions

把主线回滚到某个归档版本:ref 可以是版本号或 archive/ 下的目录名(必须由用户明确批准)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYes目标版本号(如 1)或 archive/ 下的归档目录名
noteNo回滚理由,写入主线 CHANGELOG.md
rootYesConversation Branch 工作区根目录

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the agent knows this mutates state. The description adds genuinely useful extra context beyond the annotations: the mandatory user-approval gate ('必须由用户明确批准') and the archive-target semantics. It doesn't overstate risks but adds a meaningful operational constraint.

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?

A single compact sentence that front-loads the core action (rollback mainline to archive) and appends the ref format and approval requirement. No wasted words; the most important behavioral constraint (approval) is well placed at the end for emphasis.

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?

For a destructive rollback with no output schema, the description could state more about consequences: whether the rollback is reversible, what happens to the current mainline state, or whether uncommitted changes are lost. The note field's CHANGELOG behavior is in the schema, but the operational effects of a destructive revert are left underspecified.

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 100%, so all three parameters (ref, note, root) are already documented in the schema. The description adds marginal semantic value by clarifying that ref resolves to an archived version and that user approval is tied to it, but the note and root semantics are already fully covered by the schema. Baseline 3 is appropriate.

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 (回滚/rollback), a clear resource (主线/mainline), and a precise target (归档版本/archived version). It's specific enough to distinguish from branch-oriented siblings like cb_checkout and cb_branch, though it doesn't name any sibling explicitly. The action and scope are unmistakable.

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 description gives meaningful usage context: ref may be a version number or an archive directory name, and rollout requires explicit user approval. However, it provides no guidance on when to choose this tool over its alternatives (e.g., cb_checkout vs cb_rollback, or cb_discard for discarding work), and no when-not-to-use conditions.

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