Users & Events

June 1, 2026 ยท View on GitHub

User lookup, the authenticated user (whoami), event streams, and markdown attachment upload/download.

Tools in this group


get_users

๐Ÿ“– Read-only

Get GitLab user details by usernames

Parameters

ParameterTypeRequiredDescription
usernamesarrayโœ“Array of usernames to search for

get_user

๐Ÿ“– Read-only

Get user details by ID

Parameters

ParameterTypeRequiredDescription
user_idstringโœ“The ID of the user

whoami

๐Ÿ“– Read-only

Get current authenticated user details

Parameters

No parameters.

list_events

๐Ÿ“– Read-only

List events for the authenticated user (before/after: YYYY-MM-DD)

Parameters

ParameterTypeRequiredDescription
actionstringIf defined, returns events with the specified action type
target_typeenum (epic | issue | merge_request | milestone | note | project | snippet | user)If defined, returns events with the specified target type
beforestringIf defined, Returns events created before the specified date (YYYY-MM-DD format). To include events on 2025-08-29, use before=2025-08-30
afterstringIf defined, Returns events created after the specified date (YYYY-MM-DD format). To include events on 2025-08-29, use after=2025-08-28
scopestringInclude all events across a user's projects
sortenum (asc | desc)Direction to sort the results by creation date. Default: desc
pagenumberReturns the specified results page. Default: 1
per_pagenumberNumber of results per page. Default: 20

get_project_events

๐Ÿ“– Read-only

List events for a project (before/after: YYYY-MM-DD)

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path
actionstringIf defined, returns events with the specified action type
target_typeenum (epic | issue | merge_request | milestone | note | project | snippet | user)If defined, returns events with the specified target type
beforestringIf defined, Returns events created before the specified date (YYYY-MM-DD format). To include events on 2025-08-29, use before=2025-08-30
afterstringIf defined, Returns events created after the specified date (YYYY-MM-DD format). To include events on 2025-08-29, use after=2025-08-28
sortenum (asc | desc)Direction to sort the results by creation date. Default: desc
pagenumberReturns the specified results page. Default: 1
per_pagenumberNumber of results per page. Default: 20

upload_markdown

โœ๏ธ Writes

Upload a file for use in markdown content

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path of the project
file_pathstringโœ“Path to the file to upload

download_attachment

๐Ÿ“– Read-only

Download an uploaded file from a project (images returned as base64; use local_path to save to disk)

Parameters

ParameterTypeRequiredDescription
project_idstringโœ“Project ID or URL-encoded path of the project
secretstringโœ“The 32-character secret of the upload
filenamestringโœ“The filename of the upload
local_pathstringLocal path to save the file (optional, defaults to current directory)