Skip to main content
Glama

clean

DestructiveIdempotent

Remove unused frame caches, temporary renders, previews, and unreferenced library files to free project disk space; report bytes removed or to remove with dry_run, plus broken links.

Instructions

Free disk space the project does not need: the frame cache, temporary renders, previews, and library files no example points at. Reports what it removed (or would, with dry_run), how many bytes, and broken links: linked reference videos whose file is gone. Examples, their clips and finished renders are kept.

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

Input Schema

NameRequiredDescriptionDefault
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
dry_runNo
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds real substance beyond them: the precise deletion scope, the preserved set, and the report contract (files removed, byte count, broken links to missing reference videos). It does not state whether deletion is recoverable or whether an undo exists, which is the one behavioral fact still missing for a destructive action.

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?

Three sentences, front-loaded with the outcome and scope before the report contract. The parenthetical dry_run aside and the closing preservation clause each carry distinct information; nothing is padding or a restatement of the title.

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, no-output-schema tool the description covers scope, preservation, and return content completely enough to call it safely. The remaining gap is irreversibility, which matters here because the tool permanently deletes files and the description never says the action cannot be undone.

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 coverage is 80%, so the baseline is 3. The description's only parameter contribution is clarifying dry_run semantics ("or would, with dry_run"), which the schema already expresses via its default. The basis, message, feedback, and confidence parameters are entirely undocumented in the description, though their schema text is self-explanatory.

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 opens with a specific verb and resource ("Free disk space") and then enumerates exactly which artifact classes are reclaimed (frame cache, temporary renders, previews, orphaned library files) and which are preserved (examples, clips, finished renders). An agent can distinguish this from targeted deletion siblings like delete_asset or delete_reference purely from the text.

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?

Usage is implied rather than stated: the reader infers this is the bulk-cleanup path and that dry_run previews the result. There is no explicit when-to-use trigger (e.g., low disk, after failed renders) and no routing to sibling deletion tools for removing a specific asset. The kept/removed split does implicitly carve out exclusions, which is worth more than no guidance.

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

Deploy Server

Other Tools