Skip to main content
Glama
mdtahmidhossain

jenkins-http-mcp-server

jenkins_trigger_build

Trigger a non-parameterized Jenkins job build with an optional delay. Start builds without parameters directly via HTTP.

Instructions

Trigger a non-parameterized job build. Requires JENKINS_MCP_ENABLE_WRITES=1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobYes
delayNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the jenkins_trigger_build tool. It triggers a non-parameterized Jenkins job build by POSTing to the job's /build endpoint. Requires JENKINS_MCP_ENABLE_WRITES=1.
    def jenkins_trigger_build(job: str | list[str], delay: str | None = None) -> dict[str, Any]:
        """Trigger a non-parameterized job build. Requires JENKINS_MCP_ENABLE_WRITES=1."""
    
        def op() -> dict[str, Any]:
            config = JenkinsConfig.from_env()
            config.require_writes()
            with JenkinsClient(config) as client:
                params = {"delay": delay} if delay else None
                return client.post(f"{job_path(job)}/build", params=params)
    
        return _run(op)
  • Registration of jenkins_trigger_build in the WRITE_TOOLS list, indicating it is a write-capable tool.
    WRITE_TOOLS = [
        "jenkins_trigger_build",
  • The @mcp.tool() decorator on the function registers it as an MCP tool. The function is defined inside register_tools() which accepts a FastMCP instance.
    def register_tools(mcp: FastMCP) -> None:
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only notes the environment variable requirement, failing to mention other important traits like authentication needs, idempotency, or error conditions.

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

Conciseness5/5

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

Two concise sentences with no wasted words, front-loaded with the core action.

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?

Given the low complexity and presence of an output schema, the description covers the basic action and a requirement, but omits parameter semantics and output description, leaving gaps.

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

Parameters1/5

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

The schema has 0% description coverage, and the description does not explain either parameter. 'Job' is not described regarding its string/array nature, and 'delay' has no explanation. The description adds no value beyond the schema.

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

Purpose5/5

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

The description clearly states the action ('trigger') and resource ('non-parameterized job build'), and distinguishes it from the sibling tool 'jenkins_trigger_build_with_parameters'.

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

Usage Guidelines4/5

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

The description mentions the requirement of setting JENKINS_MCP_ENABLE_WRITES=1, providing clear context for use, but does not explicitly state when not to use this tool or suggest alternatives beyond the naming.

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/mdtahmidhossain/jenkins-http-mcp-server'

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