Skip to main content
Glama

audit_repo

Audit a repository against .readfirst/map.json: report stale rules and risks, moved hot spots, empty groups, untested code, map blind spots, and frequently broken files from the last 12 months.

Instructions

The whole repository against .readfirst/map.json, as a report: rules and risks whose files changed a lot since they were written, hot spots that moved, groups never filled in, code no test reaches through imports, what readfirst could not see, and the files that broke most in the last 12 months (this part needs no map). Use it before larger work, or to decide what to add to the map.

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_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the whole burden. It does disclose useful behavior beyond structured data: the operation is report-shaped (non-mutating by implication), scoped to the entire repository, and one section ('the files that broke most in the last 12 months') explicitly needs no map, which signals partial degradation rather than hard failure. Missing are the things an agent would still have to discover empirically: what happens when .readfirst/map.json is absent or stale, the cost/runtime of a whole-repo scan, and whether results are cached.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope is front-loaded correctly ('The whole repository against .readfirst/map.json, as a report'), and every clause does carry information. But it is delivered as one sprawling run-on sentence with a nested parenthetical and six comma-separated deliverables, which makes the payload harder to parse than a short structured list would be.

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?

With no output schema, the description must describe return values itself, and it does so thoroughly by naming each section of the report. For a zero-parameter tool this is close to complete; only the map-missing failure mode and the read-only guarantee are left for the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, which is the baseline-4 case; there is nothing for the description to disambiguate. It is neutral here rather than additive.

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 scope and resource: the whole repository audited against .readfirst/map.json, emitted as a report, and then enumerates the report's constituent analyses (rule/risk drift, moved hot spots, unfilled groups, untested imports, blind spots, breakage history). That is far more concrete than the bare name. It stops short of a 5 because it never names which sibling it is not — check_map in particular is close enough that an agent must guess at the boundary.

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?

Gives explicit triggering contexts: 'Use it before larger work, or to decide what to add to the map.' That is real when-to-use guidance tied to a workflow decision. It offers no when-not conditions and no explicit routing to alternatives such as check_map or find_existing, so it lands at clear-context-without-exclusions rather than full routing.

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