Skip to main content
Glama
Jenkins Server MCP

Jenkins Server MCP

trigger_build

Trigger a new Jenkins build for a specified job, with optional parameters for parameterized builds or none for simple builds.

Instructions

Trigger a new Jenkins build. Use parameters for parameterized builds, or omit for simple builds

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>"
    },
    "name": "trigger_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobPathYesPath to the Jenkins job
parametersNoBuild parameters (optional, omit for non-parameterized builds)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 burden and does not disclose whether triggering is synchronous or queued, what the response contains (queue item vs build number), or what permissions are required. For a mutating trigger tool feeding a polling workflow (get_build_status), that missing handoff information is a real gap.

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?

Two short sentences, front-loaded with the action and followed by the parameter rule; nothing is redundant. Slightly terse, but every sentence earns its place.

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?

A mutation tool with no annotations and no output schema should say what a successful trigger yields so an agent can chain into get_build_status, and it does not. The parameter contract is complete, but the behavioral contract is not.

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 description coverage is 100%, so both jobPath and parameters are already documented. The description adds the conditional meaning that parameters should be omitted for non-parameterized builds, which reinforces but does not significantly extend the schema.

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 and resource ("Trigger a new Jenkins build") and clearly contrasts with siblings like get_build_status and stop_build by being about initiating a build. It does not name a sibling explicitly, but the action is 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 second sentence explains when to pass parameters versus omit them, which covers the main usage decision for this tool. It gives no guidance on prerequisites (e.g. job must exist / auth) or on what to do after triggering, so usage is implied rather than fully specified.

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