Skip to main content
Glama
mcp-ddg-research

mcp-ddg-research

by isyuricunha

cache_prune

DestructiveIdempotent

Prune expired cache entries, stale temporary files, and oversized items to enforce age and size limits. Use dry-run to preview deletions or expired-only mode to remove expired files while preserving fresh entries.

Instructions

Prune expired entries, stale temporary files and oversized entries.

Full pruning also enforces configured age and size limits. Expired-only pruning preserves fresh entries. Dry-run never deletes files.

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

Input Schema

NameRequiredDescriptionDefault
dry_runNoWhen true, cache_prune reports files that would be deleted without deleting them.
expired_onlyNoWhen true, cache_prune deletes only expired cache files or stale temporary files and skips size-limit pruning.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.17.3
    • changedInput schema / properties / expired_only / description
      Previous value: -"When true, cache_prune deletes only expired, corrupt, or temporary cache files and skips size-limit pruning."New value: +"When true, cache_prune deletes only expired cache files or stale temporary files and skips size-limit pruning."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "cache_pruneDictOutput",
      +  "type": "object"
      +}
  2. First observedv0.13.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds real value by naming what gets destroyed (expired entries, stale temp files, oversized entries) and by stating that dry-run never deletes files and that expired-only preserves fresh entries — scope details the annotations do not carry.

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, front-loaded with the action and targets, followed by mode semantics and the dry-run guarantee. No filler and no sentence that could be dropped without losing 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?

Zero required parameters, an output schema that carries return values, and annotations that flag destructiveness — the description fills the remaining gaps (which file classes are affected, dry-run safety, mode differences) adequately. A minor omission is scope: it never says whether pruning is global or limited to a cache region.

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 in the schema, including that expired_only skips size-limit pruning. The description's 'expired-only pruning preserves fresh entries' adds only a modest nuance about what survives, so baseline 3 applies rather than credit for new semantics.

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?

Uses a specific verb (prune) with a concrete set of targets: expired entries, stale temporary files, and oversized entries. That is clearly distinct from a stats or search tool, though it never names the closest sibling, cache_clear, so the boundary between 'prune' and 'clear' is left for the agent to infer.

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 description contrasts two operating modes (full pruning applies age and size limits; expired-only preserves fresh entries), which implies when each is appropriate, but it never gives an explicit 'use this when...' rule or points to an alternative tool such as cache_clear. An agent must derive the usage decision from the mode prose alone.

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