Skip to main content
Glama

audit_codebase

Scan a repository for AI agent distraction traps—closed-bug references, open-bug scope creep, and outdated TODOs—so you can remove dead ends before they derail work.

Instructions

Scans repository for Agent Distraction traps: closed-bug references (dead-ends), open-bug scope-creep risks, and ancient fossilized TODOs.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory or file to scan (defaults to current directory)..
fossil_daysNoAge in days to consider an untracked TODO a fossil (default: 365).
github_repoNoOptional GitHub repo in 'owner/repo' format for issue verification.
mock_status_fileNoOptional path to JSON mapping bug IDs to statuses (for offline testing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it says nothing about whether the scan is read-only or mutates the repo, whether it requires network/GitHub auth for the github_repo path, or what it emits. It does define the three detection categories, which is real semantic content, but the operational profile is unstated.

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 tight sentence with the resource first and the three detection categories enumerated, zero filler. It is jargon-dense ('Agent Distraction traps') but the parenthetical glosses make it parseable.

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?

With 4 parameters, no annotations, and no output schema, the definition covers what is detected but not how it behaves or what an agent gets back. Adequate to identify the tool's purpose, thin for deciding whether a call is safe or what to do with the result.

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 all four parameters are already documented, setting the baseline at 3. The description adds conceptual framing that connects to the params (fossilized TODOs ↔ fossil_days, issue verification ↔ github_repo) but does not name or clarify any parameter beyond the schema.

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 (Scans) and resource (repository) plus the exact findings it looks for: closed-bug references, open-bug scope-creep, fossilized TODOs. This is far more specific than a generic 'audit' description, though it never differentiates itself from the siblings clean_dead_ends and mask_triggers.

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

Usage Guidelines2/5

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

There is no guidance on when to run this versus clean_dead_ends (which presumably fixes the dead-ends this tool only reports) or mask_triggers. The only hint at usage is an implicit 'run this to find traps'; no prerequisites, no sequencing, no when-not-to-use.

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