Skip to main content
Glama

cleanup_agent_artifacts

Detect and clean up AI coding agent artifacts like TODO.md or PLAN.md with scan, clean, or archive operations and configurable patterns.

Instructions

Detect, classify, and clean up artifacts generated by AI coding agents (e.g., TODO.md, PLAN.md, agent markers, temporary files). Supports scan, clean, and archive operations with configurable patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the project directory to scan
operationYesOperation: scan (detect only), clean (remove), or archive (move to .agent-archive/)
dryRunNoShow what would be changed without making changes
interactiveNoPrompt for confirmation (not supported in MCP, treated as dryRun)
autoDeleteThresholdNoConfidence threshold for automatic deletion (0-1)
includeGitIgnoredNoInclude artifacts that are already in .gitignore
customPatternsNoCustom patterns to detect in addition to defaults
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses operations (scan, clean, archive), dry-run capability, and that interactive mode is treated as dryRun in MCP. However, it does not mention whether clean is permanent or how scanning behaves, leaving minor gaps.

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?

The description is extremely concise, consisting of two sentences that front-load the core purpose with examples and then summarize supported operations. No unnecessary words or redundancy.

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?

Despite having no output schema, the description does not explain what the tool returns (e.g., for scan operation, whether it outputs a list of artifacts). This is a significant omission given the complexity of 7 parameters and operations that produce different results.

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 the schema already documents all parameters with descriptions. The description adds no per-parameter context beyond what the schema provides, achieving the baseline of 3.

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

Purpose5/5

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

The description clearly states the tool detects, classifies, and cleans up artifacts from AI coding agents, with specific examples like TODO.md and PLAN.md. It also lists supported operations (scan, clean, archive) and configurable patterns, making it distinct from siblings like memory_cleanup.

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 implies usage for managing agent artifacts but does not explicitly state when to use this tool versus alternatives, such as memory_cleanup or other cleanup tools. No exclusion criteria or alternative recommendations are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tosin2013/documcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server