Skip to main content
Glama
Pawangunjkar

Jenkins MCP Server

by Pawangunjkar

jenkins_get_last_successful_build

Retrieve details of the last successful build for a specified Jenkins job. Provide the job name to access build information from the Jenkins MCP Server.

Instructions

Get information about the last successful build of a job.

Args: job_name: Full job name session_name: Jenkins session to use

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_nameYes
session_nameNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. Yet it says nothing about what happens if there is no successful build (does it error? return null?), whether authentication is required, or what the response structure looks like. For a read operation this is a moderate gap, particularly the failure-case behavior which is often relevant.

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

Conciseness4/5

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

The description is brief and front-loaded with the core purpose in the first line. It's compact at roughly three short sentences. One could argue it's slightly under-specified rather than verbose, but for what it does say, it's efficient and waste-free.

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

Completeness2/5

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

While there is an output schema present (which covers return-value explanation), the tool's key behavioral aspect - what happens when no successful build exists - is entirely undocumented. This is a common and important edge case for 'last successful build' tools. The description also lacks any detail on session handling or error conditions, making it incomplete for a tool with no annotations and 0% schema description coverage.

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%, so the description must compensate. It lists both parameters (job_name: 'Full job name', session_name: 'Jenkins session to use') but only with docstring-style notes that add very little meaning beyond the schema itself - job_name being 'Full' and session_name being a 'Jenkins session' are minimal elaborations. No guidance on format, how to obtain the session name, or the default value's significance.

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?

The description states the tool gets information about the last successful build of a job - a clear verb+resource pairing. It distinguishes from siblings like jenkins_get_last_build, jenkins_get_last_failed_build, jenkins_get_build_info through the 'successful' qualifier. While it doesn't explicitly name sibling alternatives, the meaning is specific and unambiguous.

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

Usage Guidelines3/5

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

The description implies this is for retrieving the most recent successful build of a job, which gives context for when to use it (when you want the last green build). However, it doesn't explicitly state when not to use it or name alternative tools like jenkins_get_last_failed_build or jenkins_get_build_info. The context is clear enough but no exclusions are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pawangunjkar/jenkins-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server