GitLab for AI agents
Agents read GitLab at once. Changes and sends are held for a person's approval by default.
About GitLab
A web-based DevOps lifecycle tool that provides a Git repository manager providing wiki, issue-tracking, and CI/CD pipeline features.
What an agent can do in GitLab
Every GitLab action is classed by the platform as a read, a change or a send. Reads run at once. Changes and sends are held for a person by default.
Runs at once (reads)
Looks things up in GitLab without asking first. 65 actions.
- Get Current UserRetrieves information about the currently authenticated user. Use this action when you need to get details about the user who owns the authentication token, such as their profile information, permissi
- Get Repository FileRetrieves a single file from a GitLab repository at a specific ref (branch, tag, or commit). Returns the file content as base64-encoded data along with metadata like size, encoding, and commit informa
- Get IssueRetrieves a single issue from a GitLab project by its internal ID (iid). Returns comprehensive issue details including description, state, labels, assignees, time tracking, and task status. Use this a
- Get Issue NoteRetrieves a single comment (note) from a GitLab issue by its ID. Use this action when you need to fetch the details of a specific note on an issue, including its content, author information, and metad
- Get Project LabelRetrieves a single project label by its ID or title. Use this action when you need to fetch details about a specific label within a GitLab project, such as its color, description, or associated issue/
- Get Merge Request ApprovalsRetrieves aggregate approval status for a GitLab merge request on any GitLab tier. Returns every approving user, even when an approval does not satisfy a specific approval rule. Use Get Merge Request
- Get Merge Request Approval StateRetrieves rule-level approval satisfaction for a GitLab merge request. This endpoint requires GitLab Premium or Ultimate and shows which users count toward each rule, not every user who approved. Use
- Get Merge Request NotesTool to fetch comments on a merge request. Use when you need to retrieve all notes for a specific merge request.
- Get MilestoneRetrieves a single milestone by its ID for a specific project. Returns detailed information including title, description, dates, and state. Use when you need to fetch complete details about a specific
- Get ProjectTool to get a single project by ID or URL-encoded path.
- Get Project Merge RequestTool to fetch full details for a single merge request when the MR IID is known. Use when you need to retrieve canonical metadata, description, state, branches, authors, and approval-related fields for
- Get ProjectsTool to list all projects accessible to the authenticated user. Supports filtering. Private or group projects may be silently omitted if the token lacks sufficient scopes or group membership.
Show all 65
- Get Raw FileRetrieves the raw contents of a file from a GitLab repository without Base64 encoding. Use this action when you need to read the actual file content directly from a repository. Unlike the standard fil
- Get Repository BranchTool to retrieve information about a specific branch in a project. Use when you need to get details for a single branch.
- Get UsersTool to retrieve a list of users from GitLab. Use this when you need to find user information, search for specific users, or filter users based on various criteria like activity status or creation dat
- Get WebhookRetrieves detailed information about a specific project webhook by its ID. Use this action when you need to inspect a webhook's configuration, including its URL, enabled event triggers, SSL verificati
- List Group ProjectsTool to list projects within a GitLab group by group ID or full path. Use when discovering projects under a namespace or subgroup.
- List Issue NotesRetrieves all notes (comments and activity) for a specific project issue in GitLab. Use this action when you need to view the discussion history, comments, or activity log on an issue to understand th
- List LabelsLists all labels for a project with optional filtering by name, archived status, and ancestor inclusion. Use this action when you need to retrieve available labels for a project to categorize issues o
- List Merge Request DiffsList the files changed by a GitLab merge request, including patch content.
- List Merge Request DiscussionsLists grouped discussion threads and their notes for a merge request.
- List Merge RequestsRetrieves a list of merge requests from across all accessible projects based on scope and filters. Use this action when you need to query merge requests at the instance or user level (not scoped to a
- List Project MilestonesLists all milestones for a specific project with optional filtering by state, title, or search terms. Use this action when you need to view project milestones, check milestone progress, or find a spec
- List Project IssuesTool to list issues for a project with filtering options (state, labels, search, assignee, author, etc.). Use when you need to browse, filter, or triage project issues to confirm IIDs or decide what t
- List project usersTool to list users of a project. Use after you have a project ID and want to retrieve its users.
- List Repository TreeList files and directories in a GitLab project's repository tree.
- List WebhooksTool to list all webhooks configured for a GitLab project. Returns webhook configurations including URLs, event triggers, and SSL settings. Use when you need to view existing webhooks for a project, a
- Validate CredentialValidates the authentication credentials by retrieving the currently authenticated user's information. Use this action when you need to verify that the API token or credentials are valid and active. R
- Get Commit ReferencesTool to get all references (branches or tags) a commit is pushed to. Use when you need to find out which branches or tags a specific commit belongs to in a GitLab project.
- Get Commit SequenceTool to get the sequence number of a commit in a project by following parent links from the given commit. Use when you need to determine the order of a commit in the project's history.
- Get Group DetailsTool to retrieve information about a specific group by its ID. Use when you need to get details of a GitLab group.
- Get Group MemberTool to retrieve details for a specific group member. Use when you need to fetch membership information for a user in a group after you know both group ID and user ID.
- Get GroupsGet Groups
- Get Job DetailsTool to retrieve details of a single job by its ID within a specified project. Use this when you need to fetch specific information about a particular CI/CD job.
- Get Job TraceRetrieves the trace (log output) for a specific CI/CD job within a project. Use this action when you need to view the execution logs of a job to debug failures, check output, or monitor job progress.
- Get Project LanguagesTool to list programming languages used in a project with percentages. Use when you need the project language breakdown.
- Get Project MemberTool to retrieve details for a specific project member. Use after confirming project and user IDs to fetch membership information for a project member.
- Get Project Member AllTool to retrieve details for a specific project member (including inherited and invited members). Use when you need the effective membership info (including invitations and inheritance).
- Get Merge Request CommitsTool to get commits of a merge request. Use when you need to retrieve all commits associated with a specific merge request.
- Get Project Merge RequestsTool to retrieve a list of merge requests for a specific project. Use when you need to get all merge requests associated with a project, with options to filter by state, labels, milestones, and other
- List Merge Request Diff VersionsTool to list all diff versions of a merge request. Use when you need to inspect changes across different diff versions after creating or updating a merge request.
- Get Repository BranchesRetrieves a list of repository branches for a project. Use this when you need to get all branches or search for specific branches within a GitLab project.
- Get Single CommitTool to get a specific commit identified by the commit hash or name of a branch or tag. Use this when you need to retrieve detailed information about a single commit in a GitLab project repository.
- Get Single PipelineTool to retrieve details of a single pipeline by its ID within a specified project. Use when you need to get information about a specific CI/CD pipeline.
- Get Issue Time StatsRetrieves time tracking statistics for a specific issue in a project. Returns both machine-readable values (in seconds) and human-readable formatted durations. Use this action when you need to check t
- Get UserTool to retrieve information about a specific user by their ID. Use when you need to fetch details for a single GitLab user.
- Get User PreferencesTool to get the current user's preferences. Use when you need to retrieve the user's diff display and CI identity JWT settings after authentication.
- Get Any User's Status by IDTool to get a user's status by ID. Use when you need to retrieve a GitLab user's current status message, emoji, and availability after identifying their user ID.
- Get User StatusTool to get the current user's status. Use when displaying or verifying the authenticated user's GitLab status after login.
- Get User Support PINTool to get details of the current user's Support PIN. Use when you need to retrieve the active support PIN and its expiration for the authenticated user.
- List All Group MembersTool to list all members of a group including direct, inherited, and invited members. Use when you need a comprehensive membership list beyond direct members.
- List All Project MembersTool to list all members of a project (direct, inherited, invited). Use when you need the effective membership list including inherited and invited members.
- List Billable Group MembersTool to list billable members of a top-level group (including its subgroups and projects). Use when generating billing reports; requires Owner role on the group.
- List Commit CommentsRetrieves all comments associated with a specific commit in a GitLab project. Use this action when you need to view discussions or feedback left on a particular commit, including both general comments
- List Group MembersTool to list direct members of a group. Use when you need to retrieve or filter a group's direct membership.
- List Pending Group MembersTool to list pending members of a group and its subgroups and projects. Use when you need to review users awaiting approval or invited without an account. Call after confirming the top-level group ID.
- List Pipeline JobsTool to retrieve a list of jobs for a specified pipeline within a project. Use this when you need to inspect the status or details of jobs associated with a particular CI/CD pipeline.
- List Project GroupsTool to list ancestor groups of a project. Use when you need to retrieve all groups a project belongs to or is shared with.
- List Project Invited GroupsTool to list groups invited to a project. Use when auditing which groups have access to a project.
- List Project PipelinesTool to retrieve a list of pipelines for a specified project. Use when you need to get information about CI/CD pipelines, such as their status, source, or creation/update times.
- List Project Shareable GroupsTool to list groups that can be shared with a project. Use before sharing a project to fetch eligible groups.
- List Project Repository TagsTool to retrieve a list of repository tags for a specified project. Use when you need to get all tags associated with a project in GitLab.
- List Project Transfer LocationsTool to list namespaces available for project transfer. Use when you need to determine which groups a project can be transferred into.
- List Repository CommitsTool to get a list of repository commits in a project. Use when you need to retrieve commit history for a specific project, branch, or time range.
- List User ProjectsTool to list projects owned by a specific user. Use after obtaining target user identity to fetch owned projects.
Held for approval by default (changes and sends)
Held for a person's approval by default. The approval is recorded and the action is sent once, never twice, with 10 seconds to undo. 57 actions.
- Add Spent TimeAdds spent time to a GitLab issue for time tracking purposes. This action logs time against an issue, accumulating with any previously logged time. Use this action when you need to record time spent w
- Approve Merge RequestApproves a merge request in a GitLab project. Use this action when you need to record an approval from the authenticated user on a specific merge request. The authenticated user must be an eligible ap
- Archive ProjectTool to archive a project. Use when you need to mark a project read-only after finishing active development. Call after confirming no further changes are required.
- Cancel JobCancel a GitLab CI/CD job within a specified project. This action stops a running or pending job and is irreversible. Use this action when you need to cancel a job that is running, pending, or stuck i
- Create CommitCreates a new commit with multiple file operations in a GitLab project. This action supports batch operations including creating, updating, deleting, moving files, and changing file permissions in a s
- Create Commit CommentPosts a comment to a specific commit in a GitLab project repository. Use this action when you need to provide feedback, review notes, or discussion on a particular commit. Line-specific comments requi
- Create Repository FileCreates a new file in a GitLab repository at the specified path with the given content. Use this action when you need to add a new file to a repository branch with a commit message.
- Create GitLab GroupTool to create a new group in GitLab. Use when you need to establish a new group for projects or collaboration.
- Create Issue NoteCreates a new note (comment) on a project issue in GitLab. Use this action when you need to add a comment, provide feedback, or document information on an existing issue.
- Create LabelCreates a new label for a GitLab project with specified name, color, and optional attributes. Use this action when you need to create a new label for organizing issues and merge requests within a proj
- Create Merge RequestCreates a new merge request in a GitLab project to propose changes from a source branch into a target branch. Use this action when you need to create a merge request for code review, feature integrati
- Create Merge Request Draft NoteCreates and saves an unpublished merge request draft note that is visible only to its author. Use this action when the requested outcome is a saved draft for later publication; it does not publish a c
Show all 57
- Create MilestoneCreates a new milestone in a GitLab project. Milestones track progress towards a goal with a start date, due date, and associated issues. Use this action when you need to establish a new project miles
- Create PipelineTool to create a new pipeline for a specific branch or tag in a GitLab project. Use when you need to manually trigger a CI/CD pipeline run, optionally passing variables or inputs. For merge request pi
- Create ProjectTool to create a new project in GitLab. Implements POST /projects endpoint.
- Create Project IssueTool to create a new issue in a GitLab project. Use when you need to report a bug, request a feature, or track a task within a specific project.
- Create Repository BranchTool to create a new branch in a project. Use when you need to create a new branch from an existing branch or a specific commit in a GitLab project.
- Create Project WebhookCreates a new webhook (project hook) for a GitLab project to receive real-time event notifications. Use this action when you need to set up automated integrations that respond to GitLab events like pu
- Delete GroupDeletes a GitLab group by its ID or URL-encoded path. Use this action when you need to remove a group entirely. This action is irreversible — the group cannot be recovered once permanently removed. On
- Fork ProjectForks a GitLab project to a specified namespace or the current user's namespace. Creates an independent copy of the project that maintains a relationship with the source. Use this action when you need
- Merge Merge RequestMerge a GitLab merge request immediately or enable auto-merge when checks pass. A successful merge is irreversible, and should_remove_source_branch can also delete the source branch.
- Move IssueMoves an issue from one project to another in GitLab. The issue receives a new IID and project_id in the destination project. Use this action when you need to relocate an issue to a different project,
- Play JobTriggers execution of a manual job in a GitLab project. Use this action when you need to start or run a job that requires manual intervention or has a manual status.
- Protect BranchProtects a repository branch in a GitLab project by setting access controls for push, merge, and unprotect operations. Use this action when you need to enforce branch protection rules to prevent unaut
- Retry PipelineRetries failed or canceled jobs in a pipeline. Use this action when you need to re-run a pipeline that has failed or was canceled. Note that if there are no failed or canceled jobs in the pipeline, ca
- Star ProjectStars a project in GitLab, marking it as a favorite for the authenticated user. This adds the project to your starred projects list and increments its star count. Use this action when you want to book
- Unstar ProjectUnstar a previously starred GitLab project to remove it from your favorites list. Use this action when you need to remove a project from your starred projects. This action removes the star that was pr
- Update GitLab GroupUpdates an existing GitLab group's settings and properties. Use this action when you need to modify group configuration such as name, path, visibility, permissions, or feature settings. Administrators
- Update Issue NoteUpdates an existing note (comment) on a GitLab issue. Use this action when you need to edit the content of a previously created comment on an issue. This is useful for correcting typos, adding additio
- Update LabelUpdates an existing label in a GitLab project by modifying its name, color, description, priority, or archived status. At least one of new_name or color must be provided to perform the update. Use thi
- Update Merge RequestUpdates an existing merge request in a GitLab project (title, description, assignees, reviewers, labels, state, etc.). Use this action when you need to modify merge request details, manage assignees/r
- Update MilestoneUpdates an existing milestone in a GitLab project, allowing you to modify the title, description, dates, or state. Use this action when you need to change milestone details, adjust deadlines, or close
- Update Project IssueTool to update an existing issue in a GitLab project (title, description, labels, assignees, state, etc.). Use when you need to modify issue details, close/reopen issues, or manage labels and assignme
- Update Repository FileUpdates an existing file in a GitLab repository. Commits the changes to the specified branch with the provided commit message. Use this action when you need to modify file contents, change file permis
- Update WebhookUpdates an existing project webhook configuration including URL, event triggers, SSL verification, and authentication token. Use this action when you need to modify a webhook's endpoint, change which
- Cancel PipelineTool to cancel a running pipeline in a GitLab project. Use this action when you need to stop a CI/CD pipeline that is currently executing or queued. Note that the API returns success (200) regardless
- Delete Issue NoteDeletes a note (comment) from an issue in a GitLab project. Use this action when you need to remove a specific comment from an issue. This action is irreversible — the note cannot be recovered once de
- Delete LabelDeletes a label from a GitLab project by its ID or title. Use this action when you need to remove a label from a project permanently. This action is irreversible — the label cannot be recovered once d
- Delete Merge RequestTool to permanently delete a merge request from a GitLab project. Use when you need to remove a merge request entirely, though closing is typically preferred to preserve the discussion history and aud
- Delete MilestoneDeletes a project milestone by its ID. Use when you need to permanently remove a milestone from a project. This action is irreversible — the milestone cannot be recovered once deleted. Requires at min
- Delete PipelineTool to delete a CI/CD pipeline by its ID within a specified project. This action expires all pipeline caches and deletes all immediately related objects such as builds, logs, artifacts, and triggers.
- Delete ProjectTool to delete a GitLab project by its ID. Use when you need to remove a project, either by marking it for later deletion or deleting it immediately.
- Delete Repository BranchTool to delete a branch from a GitLab project repository. Use when you need to remove a branch that is no longer needed. This action is irreversible — the branch cannot be recovered once deleted. Cann
- Delete Repository FileDeletes a file from a GitLab repository by creating a new commit. Use this action when you need to remove a file from a project's repository on a specific branch. This action is irreversible — the fil
- Delete WebhookDeletes a project webhook/hook permanently from a GitLab project, removing the integration and stopping all event notifications. Use this action when you need to remove a webhook that is no longer nee
- Erase JobTool to erase the content of a specified job within a project. Use when you need to remove job artifacts and logs.
- Import project membersTool to import members from one project to another. Use when migrating members between projects.
- Create Support PINTool to create a support PIN for your authenticated user. Use when GitLab Support requests a PIN to verify your identity.
- Update User PreferencesTool to update the current user's preferences. Use when adjusting default diff viewing and CI identity settings.
- Reset Spent TimeResets the total spent time for a specified GitLab issue to 0 seconds. This action is irreversible — all previously recorded time entries will be cleared and cannot be recovered. Use this action when
- Reset Time EstimateResets the estimated time for a specified issue to 0 seconds. Use this action when you need to clear a previously set time estimate on an issue while preserving the total time spent.
- Set Time EstimateSets the estimated time to complete an issue in a GitLab project. Use this action when you need to set or update the time estimate for tracking project work. The estimate is specified in human-readabl
- Set User StatusTool to set the current user's status. Use when you need to update availability or convey current mood on GitLab.
- Share Project With GroupTool to share a project with a group. Use when you need to grant a group specific access level to a project.
- Start Housekeeping TaskTool to start the housekeeping task for a project. Use when you need to trigger manual maintenance or pruning on a repository.
- Unapprove Merge RequestRemoves the approval from the currently authenticated user for a specified merge request. Use this action when you need to revoke your previously given approval on a merge request. The action requires
- Unprotect BranchTool to remove protection from a branch in a GitLab project. Use this action when you need to unprotect a branch, allowing unrestricted push and merge access. This action is irreversible in the sense
Changes wait in Needs you
Changes and sends in GitLab are held for a person's approval by default. The approval is recorded, and the action is sent once, never twice, with 10 seconds to undo.
GitLab questions
Can an agent change data in GitLab on its own?
Not by default. Changes and sends in GitLab are held for a person's approval. The approval is recorded, and the action is sent once, never twice, with 10 seconds to undo.
What can an agent read in GitLab?
This connector lists 65 read actions. Reads run at once, without waiting for approval.
How does GitLab connect?
It connects with OAuth 2.0. Connectors are built and maintained by third-party developers; availability is confirmed during scoping.