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

apply_plan

Destructive

Moves a confirmed cleanup plan's items into quarantine on the same volume for reversible removal; disk space is freed only after quarantine is purged.

Instructions

CHANGES FILES (可回滚 / reversible). Moves the plan's items into quarantine on the same volume. confirm_code must be the code the user typed. Space is only freed after purge_quarantine.

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>",
      "confirm_code": "<confirm_code>"
    },
    "name": "apply_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYes
confirm_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds genuinely new context: files are moved to quarantine rather than deleted, the operation is reversible, the quarantine lives on the same volume, and disk space is not reclaimed until purge_quarantine runs. That is real behavioral disclosure beyond the structured fields. It still does not say what happens on partial failure or whether a plan can be re-applied.

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?

Three short sentences with no filler, led by the highest-stakes fact that files change and the action is reversible. The parenthetical bilingual gloss is a minor expense. Structure is front-loaded and easy to scan.

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

Completeness4/5

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

For a two-parameter destructive tool with annotations covering the safety profile and no output schema, the description supplies reversibility, the quarantine destination, the follow-up dependency on purge_quarantine, and the provenance of confirm_code. What is missing is only the plan_id source and failure behavior. It is close to complete for the complexity involved.

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 0%, so the description must carry parameter meaning, and it does explain confirm_code as the code the user typed, which is an important constraint against fabricating a value. plan_id receives no explanation at all, leaving half the parameters undocumented. Partial compensation warrants a middle score.

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?

Uses a concrete verb plus resource: it moves the plan's items into quarantine on the same volume. It also implicitly separates this step from purge_quarantine, so an agent can tell the two apart. It stops short of explicitly naming which sibling to use first, which keeps it from 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 description implies usage through the workflow note that space is only freed after purge_quarantine, which tells the agent this is a mid-step, not the final cleanup. However, it never states when to prefer this over rollback or plan_cleanup, nor what prerequisites must hold before applying. Guidance is 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.