Skip to main content
Glama

cleanup_skill

Destructive

Preview or remove managed native runtime copies for one active canonical skill; use dry_run=true to list removable or blocked paths before deletion while preserving canonical content.

Instructions

Preview or remove managed native copies for one active canonical skill. Use when cleaning that skill's installed runtime copies; use repair_skills for orphan targets across the project and deactivate_skill for latent candidate state. Requires initialized project memory and a canonical ID, slug, or unambiguous name. dry_run=true lists removable/blocked paths; false deletes removable native directories. Keeps canonical content and blocks targets without suitable managed manifests. targets is a compatibility flag and currently does not disable cleanup. Returns plan, removed_paths, and warnings. No cleanup snapshot is created; restore native copies with sync_skills if needed.

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue (default) reports removable and blocked native targets; false deletes removable managed native copies without deleting canonical content.
targetsNoCompatibility flag, default true. Currently ignored by cleanup execution: false does not disable native target removal; use dry_run=true to preview.
skill_id_or_nameYesActive canonical skill ID, slug, or unambiguous display name. Use list_skills to resolve it; not a latent candidate ID.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.4
    • addedInput schema / properties / dry_run / description
      Added value: +"true (default) reports removable and blocked native targets; false deletes removable managed native copies without deleting canonical content."
    • addedInput schema / properties / skill_id_or_name / description
      Added value: +"Active canonical skill ID, slug, or unambiguous display name. Use list_skills to resolve it; not a latent candidate ID."
    • addedInput schema / properties / targets / description
      Added value: +"Compatibility flag, default true. Currently ignored by cleanup execution: false does not disable native target removal; use dry_run=true to preview."
  2. First observedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: it discloses that canonical content is preserved, that targets lacking suitable managed manifests are blocked, that no cleanup snapshot is created and sync_skills is the recovery path, and that the targets flag is inert. That is exactly the operational context an agent needs before invoking a destructive tool.

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 description is front-loaded with purpose and alternatives, then caveats, then return/restore information — a sensible ordering and dense with signals. It is somewhat long and partially duplicates the schema's parameter text, but no sentence is empty.

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 destructive, three-parameter tool with an output schema, it covers purpose, alternatives, prerequisites, destruction scope, the no-snapshot caveat, recovery path, and named return fields (plan, removed_paths, warnings). Nothing an agent needs in order to call this safely is missing.

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 100%, so dry_run, targets, and skill_id_or_name are already documented in the schema with the same semantics the description restates. The description adds only the accepted identifier forms (ID, slug, unambiguous name) and the latent-candidate exclusion, which is marginal value over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (preview or remove) and resource (managed native copies for one active canonical skill), and explicitly scopes it as 'one active canonical skill' rather than project-wide. An agent can distinguish it from repair_skills and deactivate_skill without opening any schema.

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

Usage Guidelines5/5

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

It states when to use this tool ('cleaning that skill's installed runtime copies') and names both alternatives with the condition that selects them: repair_skills for orphan targets across the project, deactivate_skill for latent candidate state. Prerequisites (initialized project memory, resolvable skill identifier) are also given.

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