Skip to main content
Glama

get_user

Retrieve profile details for Codebeamer users by numeric ID to identify assignees and creators in item fields.

Instructions

Get profile details for a Codebeamer user by their numeric ID. User IDs appear in item fields like assignedTo and createdBy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesNumeric user ID

Implementation Reference

  • The tool handler for 'get_user', which calls the Codebeamer client to fetch the user and formats the result.
    async ({ userId }) => {
      const user = await client.getUser(userId);
      return { content: [{ type: "text", text: formatUser(user) }] };
    },
  • The tool registration for 'get_user' including its schema definition.
    server.registerTool(
      "get_user",
      {
        title: "Get User",
        description:
          "Get profile details for a Codebeamer user by their numeric ID. " +
          "User IDs appear in item fields like assignedTo and createdBy.",
        inputSchema: {
          userId: z.number().int().positive().describe("Numeric user ID"),
        },
      },
  • The client method used by the handler to fetch the user data.
    getUser(id: number): Promise<CbUser> {
      return this.http.get(`/users/${id}`, { resource: `user ${id}` });
    }

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/3KniGHtcZ/codebeamer-mcp'

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