Skip to main content
Glama
mac-doctor-mcp
by bmdy6

rollback

Destructive

Restores quarantined files by moving every item from an applied cleanup plan back to its original location, identified by plan ID.

Instructions

CHANGES FILES (可回滚 / restores quarantined files). Moves every item of an applied plan back to where it was.

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": {
      "plan_id": "<plan_id>"
    },
    "name": "rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description is consistent with them while adding real scope detail: it moves *every* item of the plan back to where it was, making the operation all-or-nothing in appearance. It does not address what happens if some items are missing, whether the rollback is itself reversible, or any permission requirements.

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, front-loaded with the warning and the core effect, with no waste. The bilingual parenthetical and capitalized header are slightly redundant given the destructive annotation, but they do not obscure the meaning.

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 one-parameter tool with no output schema and annotations covering the safety profile, the description covers the essential effect, but it omits error/partial-failure behavior and the source of plan_id. Adequate rather than complete.

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 0% for the single required plan_id, so the schema contributes nothing, but the description partly compensates by establishing that the id refers to an already-applied plan. It never states the id format or where to obtain it, leaving a real gap for a required parameter.

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 and resource: it restores quarantined files by moving every item of an applied plan back to its original location. The parenthetical gloss clarifies the capitalized 'CHANGES FILES' header, so an agent can tell this is the inverse of apply_plan rather than a purge or recover operation.

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 only implied through the phrase 'an applied plan,' which suggests a prerequisite that a plan must already exist and have been applied, but it never states when to choose this over recover, purge_quarantine, or list_quarantine. No exclusions or preconditions are spelled out.

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