Skip to main content
Glama

health_report

Scan a Python repository for complexity, coverage gaps, dead code, cycles, unused imports, and coupling. Run at session start for a one-shot view of codebase health.

Instructions

Full-repo health scan combining every signal: complexity, coverage, dead code, cycles, unused imports, god files, TODO density, and fan-out coupling. Use at the start of a session to get a one-shot overview of the codebase state.

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

Input Schema

NameRequiredDescriptionDefault
repo_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden; it implies a read-only analysis with no mutation, but never says so outright. It also omits the cost profile — a full-repo scan across nine signals is presumably expensive and slow, which matters to an agent deciding whether to run it or a narrower sibling. Scope (entire repo, not a path or file) is at least conveyed.

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, zero filler: the capability and its signal list come first, the usage cue second. The enumeration is dense but each item earns its place by defining scan coverage.

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?

An output schema exists, so return-value detail is rightly omitted, and the single required parameter needs little explanation. The remaining gap is behavioral: with no annotations, the description should state that this is a non-destructive read and roughly how heavy a full scan is.

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 0%, so the description should compensate, and it does not mention repo_path at all. The parameter is nearly self-documenting by name, but the description adds no meaning about expected format (absolute vs. relative, repo root vs. subdirectory) or validation behavior.

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?

States a specific verb and resource ("Full-repo health scan") and enumerates the exact signals covered: complexity, coverage, dead code, cycles, unused imports, god files, TODO density, fan-out coupling. This makes it unmistakably distinct from the sibling find_complexity, find_dead_code, find_coverage_gaps, etc., which each cover one of those signals.

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?

Explicitly says to use it "at the start of a session to get a one-shot overview," which is clear situational guidance. It never explicitly states when not to use it or directs the agent to the per-signal siblings for targeted questions, but "combining every signal" strongly implies the aggregate-vs-individual distinction.

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