Skip to main content
Glama
Jenkins Server MCP

Jenkins Server MCP

stop_build

Stops a running Jenkins build by job path and build number, including lastBuild, so stuck or unwanted CI jobs can be halted.

Instructions

Stop a running 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": {
      "jobPath": "<jobPath>",
      "buildNumber": "<buildNumber>"
    },
    "name": "stop_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobPathYesPath to the Jenkins job
buildNumberYesBuild number to stop (use "lastBuild" for most recent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not state whether the stop is graceful or forced, whether it is reversible, what permissions or auth are required, what happens if the build is already finished, or what the call returns on success or failure.

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?

A single, front-loaded sentence with no wasted words. It is efficient, though its brevity is also the source of the missing behavioral detail rather than a deliberate economy.

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?

For a mutation tool with zero annotations and no output schema, the definition is too thin: it leaves unaddressed the effect of the stop, error conditions, and response shape. Those are exactly the gaps the description should fill when structured fields are silent.

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

Parameters3/5

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

Schema coverage is 100%, and the schema itself documents jobPath and the buildNumber "lastBuild" shortcut well. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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?

"Stop a running Jenkins build" gives a specific verb (stop) and resource (Jenkins build), which clearly separates it from siblings like trigger_build, get_build_status, and get_build_log. It is clear but does not explicitly name or contrast with those alternatives.

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 get_build_status or trigger_build, no preconditions (e.g., build must be in progress), and no mention of what to do if the build already completed. The agent must infer all of this.

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