Skip to main content
Glama

jenkins_get_build_log

Fetch the console log for a Jenkins build to inspect failures or review job output; specify job name and optionally build number or tail lines.

Instructions

Fetch console log for a Jenkins build.

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_name": "<job_name>"
    },
    "name": "jenkins_get_build_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_nameYes
tail_linesNo
build_numberNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden and mostly fails to. It does not say whether the call is read-only and safe, that output is truncated to a tail (default 50 lines), what build_number=0 means, or anything about log size, permissions, or failure modes for a nonexistent job/build.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of waste, but here the terseness is under-specification rather than efficiency. There is room for a short clause about default build selection and tail truncation without bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value structure need not be described. However, for a tool with three undocumented parameters and zero annotations, the description leaves too much unspecified about defaults and behavior for an agent to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate and does not. Critically, the default build_number=0 is unexplained (presumably 'latest build') and tail_lines=50 implies truncation the description never mentions, both of which materially affect how an agent calls the tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (fetch) and resource (console log) scoped to a Jenkins build, which reads clearly as distinct from jenkins_get_build_status or jenkins_list_failing_jobs. It does not explicitly name or contrast with those siblings, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus alternatives such as jenkins_get_build_status or log tools in other clouds (aws_get_cloudwatch_logs, gcp_get_logs, k8s_pod_logs). No prerequisites or exclusions are stated; the agent must infer everything from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.