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

plan_cleanup

Read-only

Creates a stored cleanup plan from candidate files, showing each item, total size, and a confirmation code so users can review and approve before deletion.

Instructions

Read-only on target files; writes plan metadata locally. Turn candidates into a stored plan. items: [{"path": "/abs/path", "reason": "why it is safe", "risk": "low|medium|high"}]. Show the user every item, the total size and the confirm_code, and ask them to reply with the code. Never apply without the user typing it.

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": {
      "items": "<items>"
    },
    "name": "plan_cleanup"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description usefully reconciles this by noting it writes plan metadata locally while staying read-only on target files. Beyond that it adds the mandatory human-confirmation protocol and the response content (items, total size, confirm_code), though it says nothing about what happens to a previously stored plan or how long a code stays valid.

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?

The safety constraint and scope lead, the parameter shape follows, and the confirmation protocol closes it out, with no filler sentences. The inline JSON fragment interrupts the prose flow slightly but is efficient for conveying the nested item structure.

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

Completeness5/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, the description covers the semantics of the undocumented parameter, the return information the agent must surface, and the required user-interaction gate. An agent could call this correctly without opening the schema.

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% and the single items parameter is an untyped array of open objects, so the description carries the full burden and does so well: it specifies the item shape with path (absolute), reason, and a low|medium|high risk value. It stops short of stating whether items may be empty or how size is computed.

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 gives a specific verb and resource: "Turn candidates into a stored plan," and immediately scopes it as "Read-only on target files; writes plan metadata locally." That distinguishes it from the mutating apply_plan sibling in behavior even though the sibling is not named explicitly.

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

Usage Guidelines4/5

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

It establishes the workflow boundary clearly: produce a plan, present it, and never apply without the user typing the confirm_code. What is missing is an explicit pointer to the execution tool (apply_plan) as the next step, so the agent must infer that applying happens elsewhere.

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