Skip to main content
Glama

gitlab_get_user_details

Retrieve detailed GitLab user activity summaries and contributions for performance reviews, team analysis, and collaboration context.

Instructions

Get comprehensive activity summary and contributions for a specific user.

Returns detailed information about a user's GitLab activity including recent contributions, project involvement, and activity statistics. Use this tool when you need detailed insights into a user's GitLab activity and contributions.

Examples:

  • Performance reviews: get_user_details(user_id=123)

  • Team member activity overview

  • Contributor analysis for projects

For basic user profile info, use 'gitlab_get_user' instead. For finding users by search, use 'gitlab_search_user' instead.

Returns extended user information:

  • Profile: name, bio, location, company

  • Statistics: public projects, contribution stats

  • Activity: last sign-in, creation date

  • Settings: timezone, preferred language

  • Social: website, LinkedIn, Twitter links

Use cases:

  • Review team member profiles

  • Gather user context for collaboration

  • Audit user activity and contributions

  • Display rich user information in tools

Parameters:

  • user_id: Numeric user ID

  • username: Username string (use either user_id or username)

Example: Get user details by username

{
  "username": "johndoe"
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNoNumeric user ID
usernameNoUsername string

Implementation Reference

  • The main handler function for 'gitlab_get_user_details' that extracts user_id or username from arguments and delegates to GitLabClient.get_user_details()
    def handle_get_user_details(client: GitLabClient, arguments: Optional[Dict[str, Any]]) -> Dict[str, Any]:
        """Handle getting comprehensive user profile"""
        user_id = get_argument(arguments, "user_id")
        username = get_argument(arguments, "username")
        
        return client.get_user_details(user_id=user_id, username=username)
  • Mapping of tool name 'TOOL_GET_USER_DETAILS' ('gitlab_get_user_details') to its handler function in TOOL_HANDLERS dictionary, used by server.call_tool()
    TOOL_GET_USER_DETAILS: handle_get_user_details,
    TOOL_GET_MY_PROFILE: handle_get_my_profile,
  • Tool schema definition including inputSchema with parameters for username (required), include_projects and include_groups (optional)
    types.Tool(
        name=TOOL_GET_USER_DETAILS,
        description=desc.DESC_GET_USER_DETAILS,
        inputSchema={
            "type": "object",
            "properties": {
                "username": {"type": "string", "description": "Username string"},
                "include_projects": {"type": "boolean", "description": "Include user's projects", "default": False},
                "include_groups": {"type": "boolean", "description": "Include user's groups", "default": False}
            },
            "required": ["username"]
        }
    ),
  • MCP server registration of the tool in handle_list_tools(), defining name, description, and inputSchema (user_id or username)
        name=TOOL_GET_USER_DETAILS,
        description=desc.DESC_GET_USER_DETAILS,
        inputSchema={
            "type": "object",
            "properties": {
                "user_id": {"type": "string", "description": "Numeric user ID"},
                "username": {"type": "string", "description": "Username string"}
            }
        }
    ),
  • Constant definition TOOL_GET_USER_DETAILS = "gitlab_get_user_details" used across the codebase for the tool name
    TOOL_GET_USER_DETAILS = "gitlab_get_user_details"

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other 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/Vijay-Duke/mcp-gitlab'

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