Skip to main content
Glama

code_health_report

Analyze a repository’s static code health without running tests: get test and documentation coverage, code smells, security findings, duplication, and quality gate pass/fail.

Instructions

Comprehensive static quality analysis for a repository. Returns test coverage, documentation coverage, code smells, security findings, code duplication, and quality gate pass/fail. No test execution needed.

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

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)

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?

With no annotations, the description carries the full burden. It does usefully disclose that no tests are executed (so no side effects on the codebase) and that it is an analysis/read operation, but it omits permission or indexing requirements, cost/latency, and whether results are cached or fresh.

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, front-loaded with the core purpose, then the return payload, then a clarifying constraint. No filler or redundancy.

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?

For a multi-metric report tool with no output schema, enumerating the returned sections does most of the work an agent needs. The remaining gap is operational context: indexing prerequisites and whether the analysis is cached or freshly computed.

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?

Only one parameter, and its schema description already covers 100% of the surface, including the pointer to list_repos. The description adds no additional meaning about the repo argument, so the baseline applies.

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: 'static quality analysis for a repository,' and enumerates the exact result categories (coverage, smells, security, duplication, quality gate). An agent knows precisely what it produces. It does not name or differentiate from potentially overlapping siblings such as find_tech_debt, so it stops short of a 5.

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?

The only usage signal is 'No test execution needed,' which implies a static-analysis context but does not state when to pick this over find_tech_debt or other analysis tools, nor any prerequisites such as the repo being indexed. No when-not guidance at all.

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