Skip to main content
Glama

find_uncovered_failure_areas

Identifies high-risk code areas by cross-referencing low test coverage with recent test failures to prioritize testing improvements.

Instructions

Find areas of code that have both low coverage AND test failures.

This cross-references test failures with coverage data to identify high-risk areas in your codebase that need attention. Files are ranked by a "risk score" calculated as: (100 - coverage%) × failureCount.

When using a user API Key (gaf_), you must provide a projectId. Use list_projects first to find available project IDs.

Parameters:

  • projectId: The project to analyze (required)

  • days: Analysis period for test failures (default: 30)

  • coverageThreshold: Include files below this coverage % (default: 80)

Returns:

  • List of risk areas sorted by risk score (highest risk first)

  • Each area includes: file path, coverage %, failure count, risk score, test names

Use this to prioritize which parts of your codebase need better test coverage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID to analyze. Required. Use list_projects to find project IDs.
daysNoNumber of days to analyze for test failures (default: 30)
coverageThresholdNoInclude files with coverage below this percentage (default: 80)

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/gaffer-sh/mcp'

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