gitlab_get_my_profile
Retrieve your complete GitLab profile including personal information, account settings, security status, and private statistics for dashboard display or data verification.
Instructions
Get the current authenticated user's complete profile
Retrieve your own comprehensive profile information including private settings and detailed statistics not available via public user APIs.
Returns complete profile including:
Personal info: email, name, bio, location
Account settings: notifications, preferences
Statistics: private/public project counts
Security: 2FA status, SSH keys count
Activity: recent contributions, sign-in history
Use cases:
Display user dashboard information
Verify account settings and security
Show personalized statistics
Export profile data
No parameters required - uses authentication token.
Example usage:
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_gitlab/tool_handlers.py:677-680 (handler)The main handler function for the 'gitlab_get_my_profile' tool. It simply delegates to the GitLabClient's get_my_profile() method to fetch the authenticated user's complete profile information.def handle_get_my_profile(client: GitLabClient, arguments: Optional[Dict[str, Any]]) -> Dict[str, Any]: """Handle getting current user's complete profile""" return client.get_my_profile()
- The tool schema definition including name, description reference, and empty input schema (no parameters required). This defines the tool's interface for MCP.types.Tool( name=TOOL_GET_MY_PROFILE, description=desc.DESC_GET_MY_PROFILE, inputSchema={ "type": "object", "properties": {} } ),
- src/mcp_gitlab/server.py:992-998 (registration)The tool registration in the server's list_tools() handler, which returns the MCP Tool object for 'gitlab_get_my_profile'.types.Tool( name=TOOL_GET_MY_PROFILE, description=desc.DESC_GET_MY_PROFILE, inputSchema={ "type": "object", "properties": {} }
- src/mcp_gitlab/tool_handlers.py:1075-1075 (registration)Mapping of tool name to handler function in the TOOL_HANDLERS dictionary, used by server.call_tool() for dispatch.TOOL_GET_MY_PROFILE: handle_get_my_profile,
- src/mcp_gitlab/constants.py:253-253 (helper)Constant definition for the tool name string, used consistently across files.TOOL_GET_MY_PROFILE = "gitlab_get_my_profile"