Skip to main content
Glama

find_tech_debt

Identify technical debt by returning per-symbol test, documentation, type, and complexity metrics; filter results to untested, undocumented, or high-complexity code.

Instructions

Returns quality metrics per symbol: has_tests, has_docs, has_types, complexity score. Filterable by untested_only, undocumented_only, or min_complexity threshold.

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": "<repo>"
    },
    "name": "find_tech_debt"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
limitNoMaximum results to return
untested_onlyNoOnly show untested symbols
min_complexityNoMinimum cyclomatic complexity threshold
undocumented_onlyNoOnly show undocumented symbols

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It does disclose the return shape (the four metric fields), which is valuable with no output schema, but says nothing about default result scope, ordering, pagination/limit behavior, or whether filters combine with AND or OR.

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?

Two short sentences with the return payload front-loaded and filters second; nothing is wasted. The 'or' connecting the filters is slightly ambiguous about combination, but the text is otherwise tight.

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?

Given five parameters, no annotations, and no output schema, the description does well to name the returned metrics, but it omits how filters combine and what the default (no-filter) result set looks like — gaps an agent would hit on the first call.

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 all five parameters are already documented with defaults and bounds. The description merely restates three filter parameters, adding no new semantics such as whether the filters can be combined or how min_complexity interacts with the boolean filters.

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 and resource ('Returns quality metrics per symbol') and enumerates the exact metrics returned (has_tests, has_docs, has_types, complexity). It does not distinguish itself from plausible siblings such as code_health_report, so the agent must infer that this is symbol-level rather than repo-level.

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 only implied: the filter names (untested_only, undocumented_only, min_complexity) suggest the intent of auditing debt, but there is no explicit statement of when to choose this over find_code or code_health_report, and no exclusions or prerequisites.

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