Skip to main content
Glama
mdtahmidhossain

jenkins-http-mcp-server

jenkins_list_plugins

List installed Jenkins plugins and their properties including version, active status, enabled, pinned, and whether updates are available.

Instructions

List installed Jenkins plugins visible through pluginManager/api/json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeNoplugins[shortName,longName,version,active,enabled,pinned,hasUpdate,deleted]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler function for jenkins_list_plugins. Calls Jenkins pluginManager API with an optional tree parameter to filter plugin fields.
    @mcp.tool()
    def jenkins_list_plugins(
        tree: str = "plugins[shortName,longName,version,active,enabled,pinned,hasUpdate,deleted]",
    ) -> dict[str, Any]:
        """List installed Jenkins plugins visible through pluginManager/api/json."""
        return _run(lambda: _get_json("pluginManager", params={"tree": tree}))
  • Registration entry in READ_ONLY_TOOLS list, marking this tool as read-only.
    "jenkins_list_plugins",
  • Helper function _get_json that creates a JenkinsClient and calls get_json on it.
    def _get_json(path: str, params: dict[str, Any] | None = None) -> Any:
        with _client() as client:
            return client.get_json(path, params=params)
  • JenkinsClient.get_json sends a GET request and parses JSON response. It appends '/api/json' to the path.
    def get_json(self, path: str, params: Mapping[str, Any] | None = None) -> Json:
        response = self.request("GET", append_api_json(path), params=params)
        try:
            payload = response.json()
        except json.JSONDecodeError as exc:
            raise JenkinsHTTPError(
                response.status_code,
                "GET",
                normalize_relative_path(path),
                "Response was not JSON",
                _body_snippet(response),
            ) from exc
        return payload
  • Appends '/api/json' to a Jenkins API path if not already present.
    def append_api_json(path: str) -> str:
        path = normalize_relative_path(path)
        split = urlsplit(path)
        clean = split.path.rstrip("/")
        if not clean.endswith("/api/json") and clean != "api/json":
            clean = f"{clean}/api/json"
        return urlunsplit(("", "", clean, split.query, ""))
Behavior2/5

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

With no annotations, the description carries full burden. It only hints at the data source ('pluginManager/api/json') but does not disclose read-only nature, authentication needs, or other behavioral traits.

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

Conciseness3/5

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

The description is a single sentence, which is concise but lacks structured details. It could be more informative without becoming verbose.

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 simplicity of the tool and presence of an output schema, the description is adequate but fails to explain the return format or any side effects. It is minimally complete for a basic list operation.

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 description does not mention the 'tree' parameter at all. Since schema description coverage is 0%, the parameter is completely undocumented, leaving the agent with no guidance on its usage.

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 uses the verb 'List' and specifies the resource as 'installed Jenkins plugins', clearly distinguishing it from sibling tools like jenkins_list_jobs or 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 Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives. It does not mention conditions, prerequisites, or when not to use it.

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