Skip to main content
Glama

Clean Developer Package Caches

clean_caches

Remove selected developer caches such as pip or uv with a safe preview-first workflow, preventing accidental deletion while reclaiming disk space.

Instructions

Safely clean specific developer caches (defaults to dry_run=true for safety).

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

Input Schema

NameRequiredDescriptionDefault
dry_runNoPreview only without deleting files (default: true).
targetsNoCache IDs to clean (e.g. ['pip', 'uv']). Empty cleans all found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden for a destructive mutation. It discloses that dry_run defaults to true, but this only repeats the schema default; it says nothing about whether deletion is reversible, what 'found' caches are, permission requirements, or what the call returns after cleaning.

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?

A single front-loaded sentence with the safety default in parentheses, no wasted clauses. The parenthetical is somewhat redundant with the schema but earns its place as a safety cue for a destructive tool.

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 two-parameter mutation tool with no annotations and no output schema, the description covers the core action and the safety default. It stops short of explaining the dry-run workflow (preview then re-invoke), scope of 'all found' targets, or what the agent gets back.

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 both parameters are already documented, including the dry_run default and the 'empty cleans all found' semantics. The description's parenthetical about dry_run adds no meaning beyond the schema, making baseline 3 appropriate.

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?

States a specific verb ('clean') and resource ('developer caches') plus a scope qualifier ('specific' targets), so the agent knows it is a targeted deletion tool, not a scanner. It never names scan_caches as the read-only counterpart, so sibling differentiation is only implied by the verb.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this versus scan_caches or how to decide targets; the only hint is the word 'specific' and the schema's example IDs. An agent must infer that it should scan first and that empty targets means clean everything found.

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