Skip to main content
Glama
mdtahmidhossain

jenkins-http-mcp-server

jenkins_list_queue

List visible items in the Jenkins build queue with ID, URL, blocking reason, and buildable status.

Instructions

List visible Jenkins queue items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeNoitems[id,url,why,blocked,buildable,stuck]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler for jenkins_list_queue. Calls _get_json('queue', ...) to fetch queue items from the Jenkins API.
    @mcp.tool()
    def jenkins_list_queue(
        tree: str = "items[id,url,why,blocked,buildable,stuck]",
    ) -> dict[str, Any]:
        """List visible Jenkins queue items."""
        return _run(lambda: _get_json("queue", params={"tree": tree}))
  • The function register_tools(mcp: FastMCP) registers all tools including jenkins_list_queue as an @mcp.tool() decorator within the function body.
    def register_tools(mcp: FastMCP) -> None:
  • The _get_json helper used by jenkins_list_queue to make the actual HTTP GET request to the Jenkins API.
    def _get_json(path: str, params: dict[str, Any] | None = None) -> Any:
        with _client() as client:
            return client.get_json(path, params=params)
  • Tool is listed in READ_ONLY_TOOLS list, which is used for permission/grouping configuration.
        "jenkins_list_queue",
        "jenkins_get_queue_item",
        "jenkins_list_views",
        "jenkins_get_view",
        "jenkins_list_nodes",
        "jenkins_get_node",
        "jenkins_list_plugins",
    ]
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It only says 'list visible' but does not explain visibility criteria, whether authentication is required, or any side effects. It is a read operation by implication, but the description is too brief to be transparent.

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 extremely concise at one sentence, but it omits essential context like parameter usage. It is not verbose, but it sacrifices utility for brevity.

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?

With one optional parameter and an output schema, the description should at least explain the parameter's role and the type of data returned. It does not, making it incomplete for practical use. The output schema partially compensates, but the description still falls short.

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 single parameter 'tree' has a default value but is not described in the description. The schema has 0% description coverage. The agent has no guidance on how to use the 'tree' parameter (e.g., for field filtering), making it difficult to invoke correctly.

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?

The description 'List visible Jenkins queue items' clearly uses a specific verb ('list') and resource ('visible Jenkins queue items'). It distinguishes from siblings like jenkins_get_queue_item and jenkins_cancel_queue_item, which operate on individual items. However, it lacks explicit mention that it lists all queue items or that it's a read operation.

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 on when to use this tool versus alternatives. For example, it does not clarify when to use jenkins_list_queue versus jenkins_get_queue_item for a specific item. There is no mention of prerequisites or context.

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