Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

test_coverage

Read-onlyIdempotent

Analyze coverage reports from lcov, istanbul, and cobertura to reveal covered and uncovered lines, untested functions, and coverage percentages.

Instructions

Analyze test coverage. Reads lcov, istanbul, and cobertura formats. Shows covered/uncovered lines, untested functions, and coverage percentages.

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": {
      "action": "<action>"
    },
    "name": "test_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoFile path for file-specific coverage
actionYessummary: overall coverage stats, file: coverage for specific file, untested: list uncovered files, test_files: find test files

Output Schema

NameRequiredDescriptionDefault
dataYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered. The description adds genuine context beyond that: the accepted input formats (lcov, istanbul, cobertura) and the shape of the analysis results. It omits failure behavior, such as what happens when no coverage artifact exists, which is why it isn't a 5.

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?

Three short sentences, front-loaded with the purpose, with no filler. The third sentence slightly restates what the action enum already implies, but it earns its place by telling the agent what the payload contains.

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 values need no explanation, and the description covers inputs (three formats) and analysis modes adequately for a simple 2-parameter tool. It would be stronger if it stated where coverage files are discovered or whether tests must be run beforehand.

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% and the action enum is documented inline, so the schema already carries parameter meaning. The description's mention of untested functions and per-file coverage loosely maps to the 'untested' and 'file' actions but adds no syntax or format detail beyond what the schema states, making the baseline 3 correct.

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?

Names a specific verb and resource ('Analyze test coverage') and enumerates the concrete outputs (covered/uncovered lines, untested functions, percentages), so the agent knows exactly what it gets back. It stops short of distinguishing itself from plausible sibling overlaps like code_metrics or analyze_file, which keeps it out of 5 territory.

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?

Use is implied by the subject matter - if you need coverage numbers, call this - but there is no explicit when-to-use or when-not-to-use guidance. The description also doesn't help the agent choose between the four action modes; that choice is left entirely to the schema enum.

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