Get Workflow Health
get_workflow_healthAssess workflow reliability by analyzing duration, success rates, MTTR, and identifying slowest, most-failed, and flaky tests to optimize test splitting and reduce flakiness.
Instructions
Return a combined health report for a specific workflow: duration/success/MTTR metrics, slowest and most-failed tests, and flaky tests. Use this to evaluate test splitting opportunities, flakiness, and overall reliability.
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": {
"project_slug": "<project_slug>",
"workflow_name": "<workflow_name>"
},
"name": "get_workflow_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Filter to a specific branch. Defaults to the default branch. | |
| all_branches | No | Set true to aggregate across all branches. | |
| project_slug | Yes | Project slug (e.g. gh/org/repo or circleci/orgID/projectID). | |
| workflow_name | Yes | Exact workflow name as it appears in the config. | |
| reporting_window | No | Time window for Insights aggregation. | last-30-days |