Skip to main content
Glama

clean_caches

Destructive

Cleans specified cache targets by ID from an earlier scan, starting with a dry run for safety; confirm before actual deletion and explicitly allow caution targets.

Instructions

Clean cache targets by ID (from scan_caches). Defaults to dry_run=True for safety; pass dry_run=False after user confirmation. Targets marked 'caution' require allow_caution=True.

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": {
      "target_ids": "<target_ids>"
    },
    "name": "clean_caches"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
target_idsYes
allow_cautionNo
move_to_trashNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description adds the safety-relevant behavior the annotations cannot convey — that the default is a dry run, that real deletion is confirmation-gated, and that caution targets are blocked behind an extra flag. It stops short of explaining what move_to_trash does or whether cleanup is reversible.

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 short sentences, each load-bearing; the source-of-IDs constraint is front-loaded before the safety workflow.

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?

An output schema exists so return values need no explanation, and the destructive workflow is adequately covered. The only real gap is the unexplained move_to_trash toggle on a destructive tool.

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%, so the description must carry parameter meaning, and it does for three of four: target_ids must come from scan_caches, dry_run defaults to True, and allow_caution unlocks caution-marked targets. move_to_trash is left entirely to its name.

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?

States a specific verb and resource ('Clean cache targets') and names the producing sibling ('from scan_caches'), so it is unmistakable from scan_caches or delete_paths.

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?

Gives a concrete sequencing rule: default dry_run=True, and only flip to False after user confirmation; also flags that 'caution' targets need allow_caution=True. It does not contrast with other cleanup siblings, but the workflow conditions it does give are explicit.

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