Get Build Summary
get_build_summarySummarizes a Jenkins build into a compact report covering result, duration, commits, failed stages, test counts, root-cause errors, and downstream builds for quick build diagnostics.
Instructions
START HERE for any build question. Compact summary of one build: result, duration,
trigger, parameters, agent node, commits, culprits (failed builds), downstream builds started by the
build step (with their result), pending input steps (running builds), stages (with failed stage and its error),
test counts, log size, known issues from the team knowledge base, likely root-cause
error lines with line numbers, and the last meaningful log lines.
Typical size: 1-3k tokens even for 30k+ line logs.
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": {
"job": "<job>"
},
"name": "get_build_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Job full name like 'cd/master/my-app' (folders separated by '/'), or a Jenkins job/build URL (instance is then detected from the URL). | |
| build | No | Build number or permalink: lastBuild, lastFailedBuild, lastSuccessfulBuild, lastCompletedBuild, lastUnsuccessfulBuild. Empty = build from the URL, else lastBuild. | |
| instance | No | Jenkins instance name from list_instances. Empty = default instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||