Skip to main content
Glama

gitlab_get_group

Retrieve detailed information about a specific GitLab group by providing its ID or URL-encoded path. This tool is part of the GitLab MCP Server, enabling efficient group management and operations.

Instructions

Get details of a specific group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYesThe ID or URL-encoded path of the group

Implementation Reference

  • The handler function that implements the core logic for the 'gitlab_get_group' tool. It extracts the group_id from parameters, validates it, calls the usersGroupsManager to fetch the group, and formats the response.
    export const getGroup: 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.getGroup(group_id as string | number);
      return formatResponse(data);
    };
  • The input schema definition for the 'gitlab_get_group' tool, specifying the required 'group_id' parameter.
    {
      name: 'gitlab_get_group',
      description: 'Get details of a specific group',
      inputSchema: {
        type: 'object',
        properties: {
          group_id: {
            type: 'string',
            description: 'The ID or URL-encoded path of the group'
          }
        },
        required: ['group_id']
      }
    },
  • The registration mapping in the toolRegistry that associates the 'gitlab_get_group' tool name with its handler function from usersGroupsHandlers.
    gitlab_get_group: usersGroupsHandlers.getGroup,

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