Get Project Health
get_project_healthAnalyze project test health by retrieving metrics including pass rate, flaky tests, and trends to assess test suite stability and identify areas for improvement.
Instructions
Get the health metrics for a project.
When using a user API Key (gaf_), you must provide a projectId. Use list_projects first to find available project IDs.
Returns:
Health score (0-100): Overall project health based on pass rate and trend
Pass rate: Percentage of tests passing
Test run count: Number of test runs in the period
Flaky test count: Number of tests with inconsistent results
Trend: Whether test health is improving (up), declining (down), or stable
Use this to understand the current state of your test suite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID to get health for. Required when using a user API Key (gaf_). Use list_projects to find project IDs. | |
| days | No | Number of days to analyze (default: 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trend | Yes | ||
| period | Yes | ||
| passRate | Yes | ||
| healthScore | Yes | ||
| projectName | Yes | ||
| testRunCount | Yes | ||
| flakyTestCount | Yes |