Get Performance Bottlenecks
get_bottlenecksIdentify the slowest and most credit-intensive jobs across all workflows to find resource over-provisioning and credit hot-spots.
Instructions
Identify the slowest and most credit-intensive jobs across all workflows in a project. Fetches Insights data for every workflow, then for every job within each workflow, and returns results sorted by total_credits_used. Use this to find resource_class over-provisioning, unnecessary serialisation, and credit hot-spots.
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>"
},
"name": "get_bottlenecks"
}
}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). | |
| reporting_window | No | Time window for Insights aggregation. | last-30-days |