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
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | The 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 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); };
- src/utils/tools-data.ts:766-779 (schema)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'] } },
- src/utils/tool-registry.ts:66-66 (registration)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,