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
| Name | Required | Description | Default |
|---|---|---|---|
| usernames | Yes | Array of usernames to search for |
Implementation Reference
- schemas.ts:205-207 (schema)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"), });
- schemas.ts:197-203 (schema)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 });
- schemas.ts:209-218 (schema)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() );