Skip to main content
Glama

cleanup_report

Read-only

Identifies leftover experiment flags and losing variant code after an experiment ends, then reports exactly what to remove from the source tree.

Instructions

After an experiment is completed: where the flag and the losing versions still appear in the code, and what to remove.

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": {
      "experiment": "<experiment>"
    },
    "name": "cleanup_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
code_rootNoDirectory of the source tree to scan. Defaults to the directory the server runs in.
experimentYesExperiment id, exact experiment name, or its flag name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description is consistent with that by framing output as 'what to remove' rather than performing removal. It adds the scope that the scan covers code locations of the flag and losing versions, but says nothing about permissions, scan limits, or whether the report is advisory only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short with no filler, but the structure is weak: a colon-led fragment with no verb makes the reader reconstruct the action, and undefined jargon like 'losing versions' costs clarity. Brevity here edges toward under-specification rather than conciseness.

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

Completeness3/5

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

For a two-parameter read-only tool with annotations covering safety and no output schema, the description is adequate but thin. It leaves unclear what the report actually contains, how 'losing versions' are determined, and what an agent should do with the output.

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. The description adds only an implicit notion that code is scanned ('appear in the code') and does not clarify accepted experiment identifier forms or code_root behavior beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a sentence fragment with no main verb; it implies a read-only analysis that locates the experiment flag and losing variants in the code and recommends removals, but never states the action ('scan and report'). The resource and timing are identifiable, yet it does not distinguish this from siblings such as stale_flags or check_plan.

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?

'After an experiment is completed' gives a clear temporal trigger for when to call it, which is real guidance. There is no when-not guidance, no named alternative, and no statement of prerequisites such as the experiment needing to be in a completed state.

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