Request
“Why did this deployment take 15 minutes, and what should we fix first?”
Execution
Tool call payload {
"tool": "profile_pipeline",
"arguments": {
"run": {
"id": "gha.acme.api.deploy.42",
"provider": "github_actions",
"repository": "acme/api",
"workflow": "deploy",
"branch": "main",
"trigger": "push",
"totalDurationSeconds": 900,
"stages": [
{
"id": "queue",
"name": "Queue",
"durationSeconds": 0,
"queueSeconds": 120
},
{
"id": "install",
"name": "Install",
"durationSeconds": 360,
"dependsOn": [
"queue"
],
"cache": {
"key": "deps",
"hit": false
},
"networkSeconds": 240
},
{
"id": "unit",
"name": "Unit tests",
"durationSeconds": 240,
"dependsOn": [
"install"
]
},
{
"id": "deploy",
"name": "Deploy",
"durationSeconds": 180,
"dependsOn": [
"unit"
]
}
]
}
}
}
Builds the critical path from caller-supplied timings, identifies queue, cache, network, and stage bottlenecks, then projects bounded optimizations.
Output
Representative contract excerpt {
"run": {
"id": "gha.acme.api.deploy.42",
"provider": "github_actions",
"repository": "acme/api",
"workflow": "deploy"
},
"totalDurationSeconds": 900,
"criticalPathSeconds": 900,
"criticalPath": [
{
"id": "queue",
"name": "Queue",
"durationSeconds": 0,
"queueSeconds": 120
},
{
"id": "install",
"name": "Install",
"durationSeconds": 360,
"networkSeconds": 240
},
{
"id": "unit",
"name": "Unit tests",
"durationSeconds": 240
},
{
"id": "deploy",
"name": "Deploy",
"durationSeconds": 180
}
],
"queueDelaySeconds": 120,
"cacheMisses": 1,
"networkSeconds": 240,
"bottlenecks": [
{
"stageId": "install",
"stageName": "Install",
"category": "critical_path",
"impactSeconds": 360,
"evidence": "Install contributes 6m to the critical path"
}
],
"estimatedSavingsSeconds": 203,
"optimizedDurationSeconds": 697,
"optimizations": [
{
"title": "Stabilize dependency and Docker cache keys",
"category": "cache",
"estimatedSavingsSeconds": 113,
"affectedStages": [
"install"
]
}
]
}
Usage rating
The completed analysis receives a measured receipt. Allowance quantities remain unpublished until the fully allocated rate card is frozen.