Skip to main content
Glama

getStatus

Check Jenkins instance status and health information to monitor system availability and performance during automation workflows.

Instructions

Get Jenkins instance status and health information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the getStatus tool. Fetches Jenkins overall load, queue, and computer/node information, computes status metrics like queue length, executor counts, and node details, then returns a success response.
    export async function getStatus(client) { try { const [overallLoad, queue, nodes] = await Promise.all([ client.get("/overallLoad/api/json"), client.get("/queue/api/json"), client.get("/computer/api/json"), ]); const status = { queueLength: queue.data?.items?.length || 0, totalExecutors: overallLoad.data?.totalExecutors || 0, busyExecutors: overallLoad.data?.busyExecutors || 0, availableExecutors: overallLoad.data?.availableExecutors || 0, nodes: nodes.data?.computer?.map((c) => ({ displayName: c.displayName, offline: c.offline, numExecutors: c.numExecutors, })) || [], }; return success("getStatus", { status }); } catch (error) { return formatError(error, "get status"); } }
  • Tool registration entry in the central tool registry, defining the tool's name, description, empty input schema, and reference to the handler function.
    getStatus: { name: "getStatus", description: "Get Jenkins instance status and health information", inputSchema: { type: "object", properties: {}, }, handler: getStatus, },
  • Input schema for the getStatus tool, specifying an empty object (no parameters required).
    inputSchema: { type: "object", properties: {}, },

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/umishra1504/Jenkins-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server