Diagnose Build Failure
diagnose_buildDiagnose a Zuul build failure in one call by combining structured failure details with surrounding log context from job output.
Instructions
One-call failure diagnosis — structured failures + relevant log context.
Combines get_build_failures (which task failed, error message) with targeted log grep (surrounding context from job-output.txt). Returns everything needed to understand a failure in a single call.
Use this instead of calling get_build_failures + get_build_log separately.
Args: uuid: Build UUID tenant: Tenant (default from env) url: Zuul build URL (alternative to uuid + tenant) brief: Return only classification + root cause (default false). Omits playbooks, log_context, and full task details for ~95% smaller response.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diagnose_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| uuid | No | ||
| brief | No | ||
| tenant | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |