Skip to main content
Glama

cleanup_cache

Remove downloaded video and keyframe cache files, clearing the entire cache or deleting only entries older than a specified age in hours.

Instructions

Clean up downloaded video/keyframe cache files.

Args: max_age_hours: If omitted, clears the entire cache directory. If provided, only removes entries older than max_age_hours.

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

Input Schema

NameRequiredDescriptionDefault
max_age_hoursNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose the critical destructive default: omitting max_age_hours wipes the whole cache directory. It does not state whether deletion is reversible, what permissions are needed, or what happens to in-use files, so the disclosure is meaningful but incomplete for 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 definition is short and front-loaded, with the destructive default behavior stated before the parameter details. The Args formatting is slightly verbose but every sentence contributes information.

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?

This is a simple one-parameter tool with an output schema, so return values need not be explained. The description covers the key operational distinction and destructive default; only permission and irreversibility details are missing.

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 description coverage is 0%, so the description must define the lone parameter, and it does: the parameter acts as an age threshold in hours and its omission triggers a full clear. This meaningfully exceeds the bare schema, though it could specify units and boundaries more explicitly.

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?

The description opens with a specific verb and resource: "Clean up downloaded video/keyframe cache files," which is enough for an agent to distinguish it from fetch/settings siblings. It does not explicitly contrast against a sibling, but the purpose is unambiguous.

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?

The Args section clearly defines the two operating modes: cleared entirely when max_age_hours is omitted, and filtered when provided. This gives an agent enough context to pick a mode, though there is no explicit when-not guidance or prerequisites beyond that.

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