gitlab

v1.0.3
com.mcparmory/gitlab Checked 2 hours ago Published 6 months ago

Manage projects, groups, branches, merge requests, and CI/CD pipelines

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_group_badge Get Group Badge

Retrieves a specific badge belonging to a group. This allows you to fetch details about a badge that has been assigned to a group.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge within the group.
id *stringThe ID or URL-encoded path of the group. This identifies which group owns the badge you want to retrieve.

update_group_badge Update Group Badge

Updates an existing badge for a group. Allows modification of the badge's name, image URL, and link URL.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge to update.
id *stringThe ID or URL-encoded path of the group owned by the authenticated user.
image_urlstringThe URL of the image to display as the badge.
link_urlstringThe URL where the badge link should direct users.
namestringA descriptive name for the badge.

remove_group_badge Remove Group Badge

Removes a badge from a group. This allows administrators to delete badges that are no longer needed or relevant to the group.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge to remove from the group.
id *stringThe ID or URL-encoded path of the group. This identifies which group the badge should be removed from.

list_group_badges List Group Badges

Retrieves a paginated list of badges for a group that are viewable by the authenticated user. Introduced in GitLab 10.6.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group. This identifies which group's badges to retrieve.
namestringFilter badges by name. Returns only badges matching the specified name.
per_pagestringNumber of badges to return per page for pagination.

add_group_badge Add Group Badge

Adds a badge to a group to display custom branding or status indicators. The badge will be visible on the group's profile page.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group. You can use either the numeric group ID or the full URL-encoded group path (e.g., 'my-group' or 'parent-group%2Fchild-group').
image_url *stringThe URL of the badge image to display. This should be a valid HTTP or HTTPS URL pointing to an image file.
link_url *stringThe URL where the badge image links to when clicked. This should be a valid HTTP or HTTPS URL.
namestringA descriptive name for the badge to help identify its purpose. This is displayed as alt text and in the group's badge management interface.

deny_group_access_request Deny Group Access Request

Denies an access request from a user to join a group. The access request is removed and the user is not granted group membership.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group. This identifies which group's access request should be denied.
user_id *stringThe user ID of the person whose access request is being denied.

approve_group_access_request Approve Group Access Request

Approves a pending access request for a user to join a group. The authenticated user must own the group to perform this action.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group. Use the numeric group ID or the full URL-encoded path (e.g., 'my-group' or 'parent-group%2Fmy-group').
user_id *stringThe numeric ID of the user whose access request is being approved.
access_levelstringThe access level to grant the user upon approval. Specifies the user's role and permissions within the group (e.g., Developer, Maintainer).

list_group_access_requests List Group Access Requests

Retrieves a paginated list of pending access requests for a group. This allows group owners to review and manage user requests to join the group.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group. This identifies which group's access requests to retrieve.
per_pagestringNumber of access requests to return per page for pagination.

request_group_access Request Group Access

Submit an access request for the authenticated user to join a group. The group owner can then review and approve or deny the request.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the group to request access for.

delete_merged_branches Delete Merged Branches

Delete all branches that have been merged into the project's default branch. This operation permanently removes merged branches to clean up the repository.

ParameterTypeDescription
id *stringThe project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group%2Fproject-name).

get_branch Get Branch

Retrieve details for a specific branch in a repository. Returns branch information including commit details and protection status.

ParameterTypeDescription
branch *stringThe name of the branch to retrieve.
id *stringThe project identifier, which can be a numeric ID or URL-encoded project path (e.g., group/subgroup/project).

delete_branch Delete Branch

Delete a branch from a project repository. This operation permanently removes the specified branch.

ParameterTypeDescription
branch *stringThe name of the branch to delete.
id *stringThe project identifier, which can be either the numeric project ID or the URL-encoded project path.

check_branch_exists Check Branch Exists

Verify whether a specific branch exists in a project repository. Returns a successful response if the branch is found, otherwise returns a 404 error.

ParameterTypeDescription
branch *stringThe name of the branch to check for existence in the repository.
id *stringThe project identifier, which can be either the numeric project ID or the URL-encoded path of the project.

list_repository_branches List Repository Branches

Retrieve a list of branches from a project's repository. Supports pagination and sorting by branch name or last update time.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., 'group%2Fproject').
per_pagestringNumber of branches to return per page for pagination.
sortstringSort the returned branches by name in ascending order, or by last update time in ascending or descending order.

create_branch Create Branch

Create a new branch in a project from a specified commit SHA or existing branch. The new branch will be created with the given name and point to the specified reference.

ParameterTypeDescription
branch *stringThe name for the new branch to be created.
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project).
ref *stringThe commit SHA or existing branch name from which to create the new branch.

unprotect_branch Unprotect Branch

Remove protection from a branch in a project, allowing it to be modified or deleted. This operation reverses any branch protection rules that were previously applied.

ParameterTypeDescription
branch *stringThe name of the branch to unprotect.
id *stringThe project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group/subgroup/project).

protect_branch Protect Branch

Protect a branch by restricting push and merge permissions. Configure whether developers can push to or merge into the specified branch.

ParameterTypeDescription
branch *stringThe name of the branch to protect.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
developers_can_mergebooleanAllow developers to merge pull requests into this branch.
developers_can_pushbooleanAllow developers to push commits to this branch.

get_project_badge Get Project Badge

Retrieve a specific badge associated with a project. This allows you to fetch details about a project badge by its ID.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge to retrieve.
id *stringThe project identifier, which can be either the numeric project ID or the URL-encoded project path (e.g., group/subgroup/project).

update_project_badge Update Project Badge

Updates an existing badge for a project. Allows modification of the badge's name, image URL, and link URL.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge to update.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
image_urlstringThe URL of the image to display as the badge.
link_urlstringThe URL that the badge links to when clicked.
namestringA descriptive name for the badge.

delete_badge Delete Badge

Removes a badge from a project. This operation permanently deletes the specified badge and its association with the project.

ParameterTypeDescription
badge_id *stringThe unique identifier of the badge to remove from the project.
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project).

list_project_badges List Project Badges

Retrieves a paginated list of badges for a project that are visible to the authenticated user. This endpoint was introduced in GitLab 10.6.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project).
namestringFilter badges by name. Returns only badges whose name matches the provided value.
per_pagestringNumber of badges to return per page for pagination.

create_project_badge Create Project Badge

Adds a new badge to a project. Badges are visual indicators that can link to external URLs and are displayed on the project page.

ParameterTypeDescription
id *stringThe ID or URL-encoded path of the project. Accepts both integer IDs and string paths.
image_url *stringThe URL of the badge image to display.
link_url *stringThe URL that the badge links to when clicked.
namestringA descriptive name for the badge to identify its purpose.

deny_access_request Deny Access Request

Denies an access request from a user for the specified project. This removes the user's pending access request and prevents them from gaining project access through this request.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
user_id *stringThe numeric ID of the user whose access request should be denied.

approve_access_request Approve Access Request

Approves a pending access request for a user to join the project. Optionally specify the access level to grant; defaults to Developer role.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
user_id *stringThe user ID of the person whose access request is being approved.
access_levelstringThe access level to grant the user upon approval. Valid levels range from 10 (Guest) to 50 (Owner).

list_access_requests List Access Requests

Retrieves a list of access requests for a project. Access requests allow users to request membership in a project.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject).
per_pagestringNumber of access requests to return per page for pagination.

request_project_access Request Project Access

Request access to a project as the authenticated user. This allows users to formally request membership or elevated permissions for a project they don't currently have access to.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project).

update_alert_metric_image Update Alert Metric Image

Update the metric image associated with an alert, including its display URL and descriptive text for reference.

ParameterTypeDescription
alert_iid *stringThe internal ID of the alert containing the metric image.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
metric_image_id *stringThe unique identifier of the metric image to update.
urlstringThe URL where the metric image or additional metric information can be viewed.
url_textstringA descriptive label or caption for the metric image or its associated URL.

delete_alert_metric_image Delete Alert Metric Image

Remove a metric image associated with an alert in a project. This operation permanently deletes the specified metric image from the alert's collection.

ParameterTypeDescription
alert_iid *stringThe internal ID (IID) of the alert from which to remove the metric image.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
metric_image_id *stringThe numeric ID of the metric image to delete.

list_alert_metric_images List Alert Metric Images

Retrieve metric images associated with a specific alert in a project. Metric images provide visual context for alert conditions and their impact.

ParameterTypeDescription
alert_iid *stringThe internal ID of the alert for which to retrieve associated metric images.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.

upload_alert_metric_image Upload Alert Metric Image

Upload a metric image to an alert for visualization and documentation purposes. Optionally include a URL and description to provide context about the metric data.

ParameterTypeDescription
alert_iid *stringThe internal ID of the alert to attach the metric image to.
file *stringBase64-encoded file content for upload. The image file to upload. Supported formats are typically PNG, JPG, and GIF.
id *stringThe project identifier, either as a numeric ID or URL-encoded path.
urlstringOptional URL to view additional metric information or the source of the metric data.
url_textstringOptional descriptive text explaining the metric image content or the linked URL.

pause_batched_background_migration Pause Batched Background Migration

Pause an active batched background migration by its ID. The migration can be resumed later from where it was paused.

ParameterTypeDescription
id *stringThe unique identifier of the batched background migration to pause.
databasestringThe database instance where the batched background migration is running. Defaults to 'main' if not specified.

get_admin_ci_variable Get Admin CI Variable

Retrieve the details of a specific instance-level CI/CD variable by its key. This operation returns the variable's configuration and metadata.

ParameterTypeDescription
key *stringThe unique identifier key of the instance-level CI/CD variable to retrieve.

delete_instance_variable Delete Instance Variable

Delete an instance-level CI/CD variable by its key. This removes the variable from the GitLab instance configuration.

ParameterTypeDescription
key *stringThe unique identifier key of the instance-level variable to delete.

list_instance_variables List Instance Variables

Retrieve all instance-level CI/CD variables available across the GitLab instance. These variables are accessible to all projects and groups.

ParameterTypeDescription
per_pagestringMaximum number of variables to return per page. Use this to control pagination when retrieving large result sets.

create_instance_variable Create Instance Variable

Create a new instance-level CI/CD variable that is available to all projects. Instance variables are useful for storing secrets and configuration values needed across your entire GitLab instance.

ParameterTypeDescription
key *stringThe unique identifier for the variable. Maximum 255 characters.
value *stringThe value assigned to the variable.
maskedbooleanWhen enabled, the variable value is masked in job logs and API responses to prevent accidental exposure of sensitive data.
protectedbooleanWhen enabled, the variable is only available to protected branches and tags, preventing exposure in unprotected environments.
rawbooleanWhen enabled, the variable value is treated as a literal string and not expanded. When disabled, variable references are expanded during job execution.
variable_typestringSpecifies whether the variable stores an environment value or a file path.

get_cluster Get Cluster

Retrieve details for a single instance cluster by its ID. This operation requires GitLab 13.2 or later.

ParameterTypeDescription
cluster_id *stringThe unique identifier of the cluster to retrieve.

update_cluster Update Cluster

Update an existing instance cluster configuration. Modify cluster settings such as name, connectivity status, environment scope, and management preferences.

ParameterTypeDescription
cluster_id *stringThe unique identifier of the cluster to update.
domainstringThe base domain for the cluster, used for generating application URLs.
enabledbooleanEnable or disable GitLab's connection to the Kubernetes cluster.
environment_scopestringThe environment associated with this cluster deployment.
managedbooleanWhen enabled, GitLab automatically manages Kubernetes namespaces and service accounts for this cluster.
management_project_idstringThe ID of the GitLab project that manages this cluster's resources and configurations.
namestringThe display name for the cluster.
namespace_per_environmentbooleanWhen enabled, each environment is deployed to a separate Kubernetes namespace for isolation.

delete_cluster Delete Cluster

Delete an instance cluster from GitLab. This removes the cluster configuration but does not delete any resources within the connected Kubernetes cluster itself.

ParameterTypeDescription
cluster_id *stringThe unique identifier of the cluster to delete.

add_kubernetes_cluster Add Kubernetes Cluster

Register an existing Kubernetes cluster as an instance cluster in GitLab. This allows GitLab to deploy applications and manage resources on the cluster.

ParameterTypeDescription
name *stringThe display name for the Kubernetes cluster.
platform_kubernetes_attributes_api_url *stringThe URL endpoint to access the Kubernetes API server.
platform_kubernetes_attributes_token *stringThe authentication token or bearer token used to authenticate requests to the Kubernetes API.
domainstringThe base domain for applications deployed to this cluster.
enabledbooleanWhether the cluster is active and available for deployments.
environment_scopestringThe environment scope this cluster is associated with, such as production or staging. Use * to match all environments.
managedbooleanWhether GitLab automatically manages Kubernetes namespaces and service accounts for this cluster.
management_project_idstringThe GitLab project ID that will manage this cluster's namespaces and service accounts.
namespace_per_environmentbooleanWhether to deploy each environment to its own isolated Kubernetes namespace for better resource separation and security.
platform_kubernetes_attributes_authorization_typestringThe authorization mechanism used by the Kubernetes cluster for access control.

list_clusters List Clusters

Retrieve a list of all instance clusters configured in GitLab. This operation provides an overview of cluster infrastructure available at the instance level.

delete_application Delete Application

Permanently delete a specific application by its ID. This action cannot be undone.

ParameterTypeDescription
id *stringThe unique identifier of the application to delete.

get_user_avatar Get User Avatar

Retrieve the avatar URL for a user based on their email address. Optionally specify a custom image size for the avatar.

ParameterTypeDescription
email *stringThe public email address of the user whose avatar should be retrieved.
sizestringThe width and height in pixels for the returned avatar image. Larger sizes provide higher resolution avatars.

get_broadcast_message Get Broadcast Message

Retrieve a specific broadcast message by its ID. Broadcast messages are system-wide announcements visible to all users.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast message to retrieve.

delete_broadcast_message Delete Broadcast Message

Delete a broadcast message by its ID. This operation permanently removes the specified broadcast message from the system.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast message to delete.

get_migration_entity Get Migration Entity

Retrieve detailed information about a specific entity within a GitLab Migration. This allows you to inspect the status and properties of individual migrated items.

ParameterTypeDescription
entity_id *stringThe unique identifier of the specific entity within the migration whose details you want to retrieve.
import_id *stringThe unique identifier of the GitLab Migration batch containing the entity you want to retrieve.

list_migration_entities List Migration Entities

Retrieve a list of entities from a GitLab Migration import job. Filter by status and paginate through results to monitor migration progress.

ParameterTypeDescription
import_id *stringThe unique identifier of the GitLab Migration import job to retrieve entities from.
per_pagestringNumber of entities to return per page for pagination. Defaults to 20 items per page.
statusstringFilter entities by their current processing status in the migration workflow.

get_bulk_import Get Bulk Import

Retrieve details about a GitLab Migration bulk import job, including its status and progress information.

ParameterTypeDescription
import_id *stringThe unique identifier of the bulk import migration to retrieve.

list_migration_entities_all List Migration Entities

Retrieve a list of all entities from GitLab Migrations. This operation supports pagination, sorting, and filtering by migration status to help track the progress of bulk import operations.

ParameterTypeDescription
per_pagestringMaximum number of entities to return per page for pagination purposes.
sortstringOrder in which to sort the returned entities by creation date.
statusstringFilter entities by their current migration status to view only those in a specific state.

list_migrations List Migrations

Retrieve a list of all GitLab Migrations with optional filtering and sorting. This feature was introduced in GitLab 14.1.

ParameterTypeDescription
per_pagestringNumber of migration records to return per page for pagination.
sortstringSort migrations by creation date in ascending or descending order.
statusstringFilter migrations by their current status in the migration lifecycle.

start_bulk_migration Start Bulk Migration

Initiate a bulk migration of GitLab entities from a source instance to the destination. This operation supports migrating groups and projects with their nested resources between GitLab instances.

ParameterTypeDescription
configuration_access_token *stringPersonal access token or project access token from the source GitLab instance with sufficient permissions to read the entities being migrated
configuration_url *stringURL of the source GitLab instance to migrate from (e.g., https://source.gitlab.com)
entities_destination_namespace *arrayArray of destination namespaces where entities will be imported. Each namespace corresponds to the entity at the same index. Specify the target group or namespace path on the destination instance
entities_source_full_path *arrayArray of relative paths for source entities to import. Each path corresponds to the entity at the same index in entities_source_type. Paths should be in the format of full project or group paths on th…
entities_source_type *arrayArray of entity types to migrate from the source instance. Each element specifies the type of resource (group or project) being imported
entities_destination_slugarrayArray of optional destination slugs for imported entities. When provided, overrides the default slug derived from the source entity name. Each slug corresponds to the entity at the same index
entities_migrate_projectsarrayArray of boolean flags indicating whether to include nested projects during group migration. Each flag corresponds to the group at the same index in entities_source_type

list_jobs List Project Jobs

Retrieve all jobs for a specified project, with optional filtering by job status. Use this to monitor job execution, track pipeline progress, or retrieve job details.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded project path (e.g., group/subgroup/project).
scopearrayFilter results to include only jobs with the specified statuses. Provide as an array of status values; order is not significant.

get_job Get Job

Retrieve details for a specific job within a project. Returns comprehensive job information including status, logs, and execution details.

ParameterTypeDescription
id *stringThe project identifier, which can be a numeric ID or URL-encoded project path (e.g., group/subgroup/project).
job_id *integerThe numeric identifier of the job to retrieve.

execute_manual_job Execute Manual Job

Execute a manual job for a project. Optionally provide custom variables to override job defaults during execution.

ParameterTypeDescription
id *stringThe project identifier, either as a numeric ID or URL-encoded path (e.g., group%2Fproject for group/project).
job_id *integerThe numeric ID of the manual job to execute.
job_variables_attributesarrayOptional array of custom variables to make available to the job during execution. Variables are applied in the order provided.