Skip to main content
Glama

cad_change_rollback

Destructive

Roll back CAD edits to a saved checkpoint and discard all subsequent changes; use checkpoint 0 to restore the session start state.

Instructions

回滚到检查点(0 = 会话开始)。之后的修改会丢弃。

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

Input Schema

NameRequiredDescriptionDefault
toNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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, and the description adds the crucial consequence beyond them: all modifications after the checkpoint are discarded. It stops short of saying whether the rollback is reversible or what happens when the requested checkpoint does not exist.

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?

Two short sentences with no filler; the destructive consequence is stated immediately after the action so an agent reading top-down sees the risk before calling.

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 no explanation, and the destructive nature is covered. However, for a destructive state-reversing tool the description omits checkpoint provenance (the cad_checkpoint sibling), error behavior for invalid checkpoints, and any post-rollback state guarantees.

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 0%, so the description must carry the parameter burden, and it does: it defines the target as a checkpoint and gives the special-case value 0 = session start. It does not explain how checkpoint identifiers are obtained or whether non-zero values are validated.

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 names a specific verb (roll back) and target (checkpoint), making clear this reverses state rather than writing or committing it. It does not explicitly contrast with siblings such as cad_change_commit or cad_checkpoint, so an agent must infer the distinction from the verb alone.

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?

Usage is implied: this is the tool to invoke when changes made after a checkpoint should be undone. It offers no explicit when-to-use framing, no prerequisites (e.g., that a checkpoint must exist first), and never names the commit/begin siblings as alternatives.

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