Skip to main content
Glama

clean_dead_ends

Remove obsolete inline TODO and FIXME comments that reference closed or resolved tickets. Preview diffs or write cleanup changes to a target directory.

Instructions

Removes obsolete inline TODO/FIXME comments that reference closed or resolved tickets.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory to clean (defaults to current directory)..
applyNoIf true, writes changes to files. If false, returns diff preview.
mock_status_fileNoOptional path to mock statuses JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only says files' comments get removed. It does not disclose that the default is a non-writing diff preview, that a write is irreversible, or how ticket statuses are resolved (a mechanism only hinted at by the mock_status_file parameter).

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?

A single front-loaded sentence with zero filler, and the operative scope appears immediately. It is lean to the point of being slightly under-specified for a file-modifying tool, but nothing is wasted.

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 file-mutating tool with no annotations and no output schema, the description omits the critical safety story: that apply defaults to false and returns a diff, what determines a ticket's status, and what the result looks like. The schema covers parameters but not behavior, so the description leaves real gaps.

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 coverage is 100%, so path, apply, and mock_status_file are already fully documented in the schema, establishing the baseline of 3. The description adds the filtering criterion (closed/resolved tickets) which contextualizes why a status file exists, but adds no syntax or format detail.

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 verb ("Removes") and a precisely scoped resource ("obsolete inline TODO/FIXME comments that reference closed or resolved tickets"). It is clearly distinct from siblings like audit_codebase or mask_triggers, though it never names or contrasts them.

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?

Usage is implied rather than stated: an agent can infer this applies when cleaning stale ticket-referencing comments, but there is no explicit guidance on when to prefer it over audit_codebase, nor any prerequisites. No exclusions or when-not-to-use conditions are given.

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

Deploy Server

Other Tools