Skip to main content
Glama

cleanup_scan

Read-only

Scans a scope for stageable logs, artifacts, and temp directories to identify cleanup candidates without disrupting active workers.

Instructions

Read-only scan of stageable logs, artifacts, and temp directories for a scope, protecting active workers.

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": {
      "scope": "<scope>"
    },
    "name": "cleanup_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes
older_than_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds a meaningful behavioral constraint—protecting active workers—and narrows the scan to stageable logs/artifacts/temp dirs, though it does not explain what 'stageable' means or what the scan returns.

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?

A single front-loaded sentence with no filler. The wording is compact and immediately states the action, targets, and safety behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and no schema descriptions, the definition leaves both parameters underspecified and says nothing about return values. It gives enough safety context to know the operation is read-only, but not enough to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description defines neither the scope values nor the older_than_hours parameter. It only repeats 'for a scope' without adding format, allowed values, or filtering 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?

States a specific action (read-only scan) and a specific resource set (stageable logs, artifacts, temp directories) scoped to a parameter. It is distinguishable from siblings like worker_status, but it does not explicitly say what the scan produces or how it relates to a cleanup step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides no explicit when-to-use guidance, no exclusions, and does not name alternatives. The purpose implies a scanning step, but an agent must infer that this is a pre-cleanup inspection rather than the cleanup operation itself.

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