jenkins_get_queue_item
Retrieve a specific Jenkins queue item by its ID to inspect its details and status.
Instructions
Get one Jenkins queue item by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/jenkins_mcp_server/tools.py:172-175 (handler)Handler function for jenkins_get_queue_item tool. Makes a GET request to queue/item/{item_id} Jenkins API endpoint.
@mcp.tool() def jenkins_get_queue_item(item_id: int) -> dict[str, Any]: """Get one Jenkins queue item by ID.""" return _run(lambda: _get_json(f"queue/item/{item_id}")) - src/jenkins_mcp_server/tools.py:172-175 (registration)Tool is registered via @mcp.tool() decorator within register_tools() function.
@mcp.tool() def jenkins_get_queue_item(item_id: int) -> dict[str, Any]: """Get one Jenkins queue item by ID.""" return _run(lambda: _get_json(f"queue/item/{item_id}")) - _get_json helper used by the handler to make the actual HTTP GET request via JenkinsClient.
def _get_json(path: str, params: dict[str, Any] | None = None) -> Any: with _client() as client: return client.get_json(path, params=params) - _run helper wraps the handler call with error handling, returning ok/data or error dict.
def _run(fn): try: return _ok(fn()) except JenkinsMCPError as exc: return exc.to_dict() - Tool name listed in READ_ONLY_TOOLS list indicating it's a read-only tool with no write permissions required.
"jenkins_get_queue_item",