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"
Behavior4/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. It effectively describes what the tool returns ('detailed information about a user's GitLab activity'), including specific categories like profile, statistics, activity, settings, and social links. However, it lacks details on error handling, rate limits, or authentication requirements, which would elevate the score further.

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

Conciseness3/5

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

The description is front-loaded with the core purpose but becomes verbose with redundant sections like 'Use cases' and 'Returns extended user information' that repeat earlier points. While informative, it could be more streamlined by eliminating repetition, such as merging the activity summary with the detailed return list.

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

Completeness4/5

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

Given the complexity of a user details tool with no annotations and no output schema, the description does a good job of covering purpose, usage, and return values. It includes examples, parameter guidance, and sibling tool differentiation. However, it could improve by specifying output format or error cases to be fully comprehensive.

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%, so the schema already documents both parameters (user_id and username). The description adds minimal value beyond the schema by noting 'use either user_id or username' and providing an example, but it doesn't clarify exclusivity or priority rules. This meets the baseline for high schema coverage.

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

Purpose5/5

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

The description clearly states the tool's purpose with specific verbs ('Get comprehensive activity summary and contributions') and resources ('for a specific user'). It explicitly distinguishes itself from sibling tools like 'gitlab_get_user' for basic profile info and 'gitlab_search_user' for finding users, making the differentiation clear and actionable.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool ('when you need detailed insights into a user's GitLab activity and contributions') and when to use alternatives ('For basic user profile info, use 'gitlab_get_user' instead. For finding users by search, use 'gitlab_search_user' instead.'). It also includes use cases and examples, offering comprehensive context for 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

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