Skip to main content
Glama
mdtahmidhossain

jenkins-http-mcp-server

jenkins_get_node

Retrieve details of any Jenkins node by name, including the built-in node.

Instructions

Get one Jenkins computer/node by name. Use (built-in) for the built-in node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler function for the 'jenkins_get_node' tool. Calls Jenkins API at 'computer/{node_name}/api/json', mapping empty string to '(built-in)' for the built-in node.
    @mcp.tool()
    def jenkins_get_node(node: str) -> dict[str, Any]:
        """Get one Jenkins computer/node by name. Use (built-in) for the built-in node."""
        value = "(built-in)" if node == "" else node
        return _run(lambda: _get_json(f"computer/{safe_segment(value, 'node')}"))
  • Helper that validates and URL-encodes a single path segment to prevent traversal or empty segments.
    def safe_segment(value: str, label: str) -> str:
        if not value or value in {".", ".."} or "/" in value:
            raise PathValidationError(f"{label} must be a single Jenkins path segment")
        return quote(value, safe="")
  • Helper that calls JenkinsClient.get_json to make a GET request and parse the JSON response.
    def _get_json(path: str, params: dict[str, Any] | None = None) -> Any:
        with _client() as client:
            return client.get_json(path, params=params)
    
    
    def _get_text(path: str) -> str:
        with _client() as client:
            return client.get_text(path)
  • Helper that wraps function calls, returning success or error dictionaries.
    def _run(fn):
        try:
            return _ok(fn())
        except JenkinsMCPError as exc:
            return exc.to_dict()
    
    
    def _client() -> JenkinsClient:
  • The tool name 'jenkins_get_node' is listed in the READ_TOOLS list (line 368), indicating it is a read-only tool.
        "jenkins_list_nodes",
        "jenkins_get_node",
        "jenkins_list_plugins",
    ]
Behavior2/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It only implies a read operation ('Get') but lacks details about error handling, permissions, or side effects.

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?

The description consists of two short, front-loaded sentences with no unnecessary words. It efficiently communicates the tool's purpose and a key usage detail.

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

Completeness4/5

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

For a simple get tool with an output schema, the description covers the basic use case adequately. It could mention error handling, but the presence of an output schema reduces the need to explain return values.

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?

The schema has 0% description coverage for the parameter, but the description adds value by noting the special value '(built-in)'. However, it does not fully describe the parameter format or constraints.

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 tool's action ('Get') and resource ('one Jenkins computer/node by name'), with an example use case for the built-in node. This distinguishes it from siblings like jenkins_list_nodes.

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 usage for retrieving a specific node by name but does not explicitly state when to use this tool versus alternatives like jenkins_list_nodes. No exclusions or alternatives are mentioned.

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