Skip to main content
Glama

get_users

Retrieve GitLab user details by providing specific usernames to access profile information and account data.

Instructions

Get GitLab user details by usernames

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernamesYesArray of usernames to search for

Implementation Reference

  • Input schema definition for the 'get_users' tool. Defines the expected input parameters (array of usernames).
    export const GetUsersSchema = z.object({ usernames: z.array(z.string()).describe("Array of usernames to search for"), });
  • Schema for individual GitLab user object, used in get_users responses.
    export const GitLabUserSchema = z.object({ username: z.string(), // Changed from login to match GitLab API id: z.number(), name: z.string(), avatar_url: z.string().nullable(), web_url: z.string(), // Changed from html_url to match GitLab API });
  • Output/response schema for get_users tool. Maps username to user details or null.
    export const GitLabUsersResponseSchema = z.record( z.string(), z.object({ id: z.number(), username: z.string(), name: z.string(), avatar_url: z.string().nullable(), web_url: z.string(), }).nullable() );

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/harshmaur/gitlab-mcp'

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