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

purge_quarantine

Destructive

Permanently deletes quarantined cleanup batches older than a set number of days after user confirmation; without a confirm code, it performs a dry run and lists eligible batches.

Instructions

不可回滚 / NOT REVERSIBLE when confirm_code is given. Without it: dry run listing batches older than keep_days and a confirm_code. Show the list to the user; only pass the code they typed.

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

Input Schema

NameRequiredDescriptionDefault
keep_daysNo
confirm_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description clearly discloses irreversibility when confirm_code is provided and explains the safe dry-run path. It also adds a human-in-the-loop confirmation requirement that is critical for safe invocation.

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?

The description is short and front-loads the irreversible warning before explaining the safe workflow. The bilingual warning is slightly redundant but does not add meaningful waste.

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 destructive tool with no output schema, it provides the essential safety model, mode behavior, and confirmation workflow. It omits edge cases such as invalid or expired codes and the confirmed-purge response, but the core call semantics are complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the full burden and explains both parameters. keep_days defines the age threshold for batches, and confirm_code toggles between dry run and irreversible purge while requiring a user-typed value.

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 operation: purging quarantine batches, with irreversible mode when confirm_code is supplied and dry-run listing otherwise. It differentiates itself from a simple listing by describing the dry-run/confirm workflow, though it does not explicitly name sibling tools.

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 gives a clear operational workflow: omit confirm_code for a dry run, show the resulting batch list to the user, and pass only the code the user typed. It does not explicitly compare against alternatives such as list_quarantine or rollback, but the mode-selection guidance is strong.

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