Skip to main content
Glama

find_todo_comments

Rank TODO, FIXME, HACK, BUG, and XXX comments by composite risk (tag severity, complexity, symbol size) to focus on technical debt that matters, not every stray TODO.

Instructions

Rank TODO/FIXME/HACK/BUG/XXX comments by composite risk (tag severity + complexity + line count of the enclosing symbol). Use this to find the author-annotated debt that actually matters instead of every stray 'TODO' in the codebase.

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": {
      "repo_path": "<repo_path>"
    },
    "name": "find_todo_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
repo_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does add genuinely useful behavior beyond the schema by disclosing the composite scoring inputs (tag severity + complexity + line count of the enclosing symbol), which tells the agent results are ranked, not merely listed. However it says nothing about read-only safety, scope of repo traversal, cost on large repos, or what happens when the limit truncates results.

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?

Two sentences, both load-bearing, with the action and its ranking formula front-loaded before the usage rationale. There is no filler, hedging, or repetition of the tool name.

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?

This is a simple two-parameter, single-repo tool and an output schema exists, so return values need no explanation. Purpose, ranking logic, and usage are covered. The only meaningful omission is the semantics of `limit` and its default of 50, which an agent could still infer from the schema's default.

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%, so the description must supply the parameter meaning and it does not. Neither `repo_path` nor `limit` is mentioned; the agent must infer that `limit` caps the ranked result set and that `repo_path` selects the tree. 'in the codebase' is the only weak hint at repo scoping.

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 uses a specific verb ('Rank') and a precisely enumerated resource ('TODO/FIXME/HACK/BUG/XXX comments'), plus the ranking basis. It is immediately distinguishable from every sibling, which are structural/static-analysis scanners (find_complexity, find_dead_code, find_god_files), since this one targets author-written annotation tags.

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

Usage Guidelines4/5

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

It gives a clear selection rationale: use this to surface debt that 'actually matters' rather than 'every stray TODO'. That defines when to reach for it versus a naive grep-style pass. It stops short of naming any sibling tool it should be chosen over, so there are no explicit exclusions.

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