Skip to main content
Glama

gitlab_list_groups

Retrieve and manage GitLab groups by listing them based on ownership or search criteria using the GitLab MCP Server for streamlined group administration.

Instructions

List GitLab groups

Input Schema

NameRequiredDescriptionDefault
ownedNoLimit to groups explicitly owned by the current user
searchNoSearch groups by name

Input Schema (JSON Schema)

{ "properties": { "owned": { "description": "Limit to groups explicitly owned by the current user", "type": "boolean" }, "search": { "description": "Search groups by name", "type": "string" } }, "type": "object" }

Implementation Reference

  • The main handler function for gitlab_list_groups tool, which extracts parameters and calls the usersGroupsManager.listGroups method.
    export const listGroups: ToolHandler = async (params, context) => { const { search, owned, min_access_level } = params.arguments || {}; const data = await context.usersGroupsManager.listGroups({ search: search as string | undefined, owned: owned as boolean | undefined, min_access_level: min_access_level as number | undefined }); return formatResponse(data); };
  • The tool schema definition including name, description, and inputSchema for gitlab_list_groups.
    { name: 'gitlab_list_groups', description: 'List GitLab groups', inputSchema: { type: 'object', properties: { search: { type: 'string', description: 'Search groups by name' }, owned: { type: 'boolean', description: 'Limit to groups explicitly owned by the current user' } } }
  • Registration of gitlab_list_groups to usersGroupsHandlers.listGroups within the tool registry object.
    // Users and Groups tools gitlab_list_users: usersGroupsHandlers.listUsers, gitlab_get_user: usersGroupsHandlers.getUser, gitlab_list_groups: usersGroupsHandlers.listGroups, gitlab_get_group: usersGroupsHandlers.getGroup, gitlab_list_group_members: usersGroupsHandlers.listGroupMembers, gitlab_add_group_member: usersGroupsHandlers.addGroupMember, gitlab_list_project_members: usersGroupsHandlers.listProjectMembers, gitlab_add_project_member: usersGroupsHandlers.addProjectMember };

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