Skip to main content
Glama

Cleanup Snapshots

cleanup_snapshots

Deletes older CSV and PNG snapshot files from the export directory while preserving a specified number of the most recent ones.

Instructions

Legacy explicit cleanup: delete older CSV/PNG files from the configured export directory. Disable with WIZTREE_MCP_DISABLE_CLEANUP=1.

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

Input Schema

NameRequiredDescriptionDefault
keepLatestNoNumber of most recent snapshots (by base name) to keep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the important facts: this is destructive (deletes files), it only touches older CSV/PNG files, it operates on the configured export directory, and it can be disabled via an env var. It does not say whether deletion is permanent, whether there is a dry-run, or what is returned, which matters for an irreversible mutation.

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?

Two short sentences, front-loaded with the action and scope, followed by the operational escape hatch. Nothing is wasted and nothing is buried.

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 single-parameter destructive maintenance tool with no annotations or output schema, the description covers action, scope, and a disable mechanism, which is close to sufficient. The main residual gap is confirmation of irreversibility and whether a preview/listing step is expected.

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 100% and the single keepLatest parameter is documented in the schema with default, min, and max. The description adds no meaning about how keeping works or its interaction with base-name grouping, so the baseline of 3 applies.

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 (delete) and resource (older CSV/PNG files in the configured export directory), plus labels it 'legacy explicit cleanup', which tells an agent this is a manual maintenance path rather than routine reading. It does not name a sibling such as list_snapshots as the way to inspect what exists before deleting, so differentiation is implied rather than explicit.

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?

The word 'legacy' plus the WIZTREE_MCP_DISABLE_CLEANUP=1 kill switch imply this is optional/manual, which is useful context. However, there is no statement of when an agent should run it versus when it should skip it, and no guidance to preview with list_snapshots first.

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