Skip to main content
Glama

analyze_test_coverage

Map test files to their corresponding implementation files by analyzing naming patterns, imports, and code references to identify test-to-code relationships with high accuracy.

Instructions

Analyze test coverage by mapping test files to their corresponding implementation files. Identifies test-to-code relationships through naming patterns, imports, and code references with 95% accuracy target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_byNoHow to group the coverage results (default: file)file
min_confidenceNoMinimum confidence threshold for test-implementation mapping (default: 0.5)
include_orphansNoInclude implementation files without test coverage (default: true)
include_untestedNoInclude test files without clear implementation targets (default: false)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the method (naming patterns, imports, code references) and an accuracy target, which is helpful. However, it does not mention safety traits (e.g., read-only), permissions, side effects, or limitations, leaving gaps for an agent assessing behavioral impact.

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?

The description is two sentences long, front-loaded with the core action, and contains no extraneous words. Every sentence adds value: the first defines the tool's purpose, the second details the method and accuracy target.

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?

Given the tool's moderate complexity (4 optional parameters, no output schema), the description covers the goal and method but does not explain the output format (e.g., list of file pairs, percentages). It also does not differentiate from the many similar sibling tools. The description is adequate but incomplete for full agent guidance.

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 the input schema already describes each parameter with defaults and constraints. The tool description adds no additional semantic meaning beyond what the schema provides. The baseline score of 3 is appropriate.

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?

The description states a specific verb ('Analyze') and resource ('test coverage by mapping test files to implementation files'), with clear method (naming patterns, imports, code references) and an accuracy target (95%). It distinguishes itself from sibling tools like 'analyze_architecture' or 'analyze_call_patterns' by focusing uniquely on test-to-code mapping.

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?

The description implies usage for understanding test–implementation relationships, but it does not explicitly state when to use this tool versus alternatives (e.g., 'analyze_architecture'), nor does it provide exclusions or prerequisites. The guidance is implicit, not directive.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nerfels/mind-map'

If you have feedback or need assistance with the MCP directory API, please join our Discord server