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

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

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
    }; 
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure but offers minimal information. It implies a read-only operation ('List') but doesn't cover aspects like pagination, rate limits, authentication requirements, or what data is returned (e.g., group IDs, names, permissions). This is inadequate for a tool with potential complexity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise ('List GitLab groups') and front-loaded, with no wasted words. It efficiently communicates the core purpose in three words, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and a list operation that could involve behavioral nuances (e.g., pagination, scope), the description is incomplete. It lacks information on return values, error handling, or operational constraints, making it insufficient for reliable agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with clear parameter descriptions in the schema (e.g., 'owned' limits to user-owned groups, 'search' filters by name). The description adds no parameter semantics beyond the schema, so it meets the baseline of 3 without compensating for gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'List GitLab groups' clearly states the verb ('List') and resource ('GitLab groups'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'gitlab_get_group' (singular) or 'gitlab_list_projects', which would require more specificity to earn a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'gitlab_get_group' for retrieving a specific group or 'gitlab_list_projects' for listing projects within groups, leaving the agent without context for tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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