Skip to main content
Glama
mdtahmidhossain

jenkins-http-mcp-server

jenkins_list_nodes

Retrieve a list of Jenkins nodes visible to you, with customizable fields to display.

Instructions

List Jenkins computers/nodes visible to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeNocomputer[displayName,offline,temporarilyOffline,numExecutors,assignedLabels[name]]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler/function that implements the jenkins_list_nodes tool. It calls /computer API with a tree filter to list Jenkins nodes.
    @mcp.tool()
    def jenkins_list_nodes(
        tree: str = (
            "computer[displayName,offline,temporarilyOffline,numExecutors,assignedLabels[name]]"
        ),
    ) -> dict[str, Any]:
        """List Jenkins computers/nodes visible to the user."""
        return _run(lambda: _get_json("computer", params={"tree": tree}))
  • Tool name listed in READ_ONLY_TOOLS array, categorizing it as a read-only tool.
        "jenkins_list_nodes",
        "jenkins_get_node",
        "jenkins_list_plugins",
    ]
  • The tool is registered via the @mcp.tool() decorator inside register_tools(), meaning it's auto-registered as an MCP tool when register_tools() is called.
    def register_tools(mcp: FastMCP) -> None:
  • The _get_json helper function is called by the handler to perform the API request to Jenkins.
    def _get_json(path: str, params: dict[str, Any] | None = None) -> Any:
        with _client() as client:
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It only implies read-only access via 'visible to the user,' but lacks details on authorization, rate limits, pagination, or effect of the 'tree' parameter. The tool is likely safe, but the description does not confirm this.

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 a single efficient sentence with no waste. However, it is extremely brief, bordering on under-specification.

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?

Despite having an output schema, the description lacks information about how to use the 'tree' parameter, what data is returned, or any constraints. For a list tool with a non-trivial parameter, this is incomplete.

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 mention or explain the 'tree' parameter at all. The agent must infer its purpose from the parameter name and default value, which is insufficient.

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 ('List') and the resource ('Jenkins computers/nodes'), and adds scoping ('visible to the user'), which distinguishes it from sibling tools like jenkins_get_node (single node) or jenkins_list_jobs (jobs).

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?

No usage guidelines are provided. The description does not indicate when to use this tool versus alternatives, nor does it mention any prerequisites or exclusions.

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