Skip to main content
Glama

gitlab_list_group_members

Retrieve a list of members associated with a specific GitLab group by providing the group ID or path. Facilitates user management and access control within the GitLab MCP Server.

Instructions

List members of a group

Input Schema

NameRequiredDescriptionDefault
group_idYesThe ID or URL-encoded path of the group

Input Schema (JSON Schema)

{ "properties": { "group_id": { "description": "The ID or URL-encoded path of the group", "type": "string" } }, "required": [ "group_id" ], "type": "object" }

Implementation Reference

  • The handler function that implements the logic for the gitlab_list_group_members tool. It validates the group_id parameter and delegates to the usersGroupsManager to fetch the list of group members.
    export const listGroupMembers: ToolHandler = async (params, context) => { const { group_id } = params.arguments || {}; if (!group_id) { throw new McpError(ErrorCode.InvalidParams, 'group_id is required'); } const data = await context.usersGroupsManager.listGroupMembers(group_id as string | number); return formatResponse(data); };
  • The input schema definition for the gitlab_list_group_members tool, specifying the required group_id parameter.
    name: 'gitlab_list_group_members', description: 'List members of a group', inputSchema: { type: 'object', properties: { group_id: { type: 'string', description: 'The ID or URL-encoded path of the group' } }, required: ['group_id'] } },
  • Registration of the gitlab_list_group_members tool in the central tool registry, mapping the tool name to its handler function.
    gitlab_list_group_members: usersGroupsHandlers.listGroupMembers,

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

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