Skip to main content
Glama

whoAmI

Retrieve details about the currently authenticated Jenkins user, including identity and access permissions, for verification and access control purposes.

Instructions

Get information about the current authenticated user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the whoAmI tool logic: fetches current user info from Jenkins /whoAmI/api/json endpoint using the provided client, handles success/error responses using shared utilities.
    export async function whoAmI(client) { try { const response = await client.get("/whoAmI/api/json"); if (response.status === 200) { return success("whoAmI", { user: response.data }); } return failure("whoAmI", "Failed to get user info", { statusCode: response.status, }); } catch (error) { return formatError(error, "get user info"); } }
  • Tool registration entry in the central toolRegistry object, defining name, description, input schema (no required parameters), and references the imported handler function.
    whoAmI: { name: "whoAmI", description: "Get information about the current authenticated user", inputSchema: { type: "object", properties: {}, }, handler: whoAmI, },
  • Input schema definition for the whoAmI tool: accepts 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