Skip to content

Access tokens and credentials

The credentials that give someone or something access to a project or a group: project, group and personal access tokens (list, read, rotate and revoke, and create for projects and groups), deploy tokens, deploy keys, the access requests users file to join, and the invitations sent to them. Rotating a token issues a new value and revokes the old one in one call: the token keeps its name, scopes and role, but whatever holds the old value, a CI/CD variable for instance, has to be updated with the token the call returns. Revoking or deleting a credential is destructive.

Creating a personal access token is a user action rather than one of these (see Users), and so are SSH keys and impersonation tokens. Project and group members are managed on the Projects and Groups pages, and the CI/CD job token scope on Jobs.

  • “List the access tokens of project 42”
  • “Rotate the deploy-bot project token before it expires”
  • “Create a read-only deploy token for my-group/my-app”
  • “Approve the pending access requests on group platform”
  • Dynamic, the default surface: call gitlab_execute_action with action set to the action’s ID, such as access.approve_group, and its parameters in params. gitlab_find_action finds an ID from a description of the task.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): call gitlab_access with action set to the action’s name, such as approve_group, and its parameters in params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such as gitlab_access_request_approve_group, with its parameters as the arguments.

Every tier serves the whole group, on self-managed instances and on GitLab.com alike.

Read-only actions: 19 of 48, the ones a deployment in read-only mode keeps. A token with read_api and not api is served 20 of the 48.

The description of each action, and of each of its parameters, is the text the server serves for it on the default surface, quoted as served. The token lines say what GitLab 19.6.1 requires of a token for the requests each action sends; on an instance with Admin Mode turned on, an action only an administrator may run also needs admin_mode. A destructive action runs only once confirmed, unless GITLAB_MCP_YOLO_MODE (or AUTOPILOT) skips that step: the dynamic surface needs confirm: true on gitlab_execute_action, and the other two take a confirm parameter or the client’s prompt (Destructive actions). A parameter followed by a tier in parentheses is served only from that tier on.

Action Individual
access.approve_group gitlab_access_request_approve_group
access.approve_project gitlab_access_request_approve_project
access.deny_group gitlab_access_request_deny_group
access.deny_project gitlab_access_request_deny_project
access.deploy_key_add gitlab_deploy_key_add
access.deploy_key_add_instance gitlab_deploy_key_add_instance
access.deploy_key_delete gitlab_deploy_key_delete
access.deploy_key_enable gitlab_deploy_key_enable
access.deploy_key_get gitlab_deploy_key_get
access.deploy_key_list_all gitlab_deploy_key_list_all
access.deploy_key_list_project gitlab_deploy_key_list_project
access.deploy_key_list_user_project gitlab_deploy_key_list_user_project
access.deploy_key_update gitlab_deploy_key_update
access.deploy_token_create_group gitlab_deploy_token_create_group
access.deploy_token_create_project gitlab_deploy_token_create_project
access.deploy_token_delete_group gitlab_deploy_token_delete_group
access.deploy_token_delete_project gitlab_deploy_token_delete_project
access.deploy_token_get_group gitlab_deploy_token_get_group
access.deploy_token_get_project gitlab_deploy_token_get_project
access.deploy_token_list_all gitlab_deploy_token_list_all
access.deploy_token_list_group gitlab_deploy_token_list_group
access.deploy_token_list_project gitlab_deploy_token_list_project
access.invite_group gitlab_group_invite
access.invite_list_group gitlab_group_invite_list_pending
access.invite_list_project gitlab_project_invite_list_pending
access.invite_project gitlab_project_invite
access.request_group gitlab_access_request_request_group
access.request_list_group gitlab_access_request_list_group
access.request_list_project gitlab_access_request_list_project
access.request_project gitlab_access_request_request_project
access.token_group_create gitlab_group_access_token_create
access.token_group_get gitlab_group_access_token_get
access.token_group_list gitlab_group_access_token_list
access.token_group_revoke gitlab_group_access_token_revoke
access.token_group_rotate gitlab_group_access_token_rotate
access.token_group_rotate_self gitlab_group_access_token_rotate_self
access.token_personal_get gitlab_personal_access_token_get
access.token_personal_list gitlab_personal_access_token_list
access.token_personal_revoke gitlab_personal_access_token_revoke
access.token_personal_revoke_self gitlab_personal_access_token_revoke_self
access.token_personal_rotate gitlab_personal_access_token_rotate
access.token_personal_rotate_self gitlab_personal_access_token_rotate_self
access.token_project_create gitlab_project_access_token_create
access.token_project_get gitlab_project_access_token_get
access.token_project_list gitlab_project_access_token_list
access.token_project_revoke gitlab_project_access_token_revoke
access.token_project_rotate gitlab_project_access_token_rotate
access.token_project_rotate_self gitlab_project_access_token_rotate_self

Approve a pending group access request, granting the user membership at access_level, or Developer when it is left out. Minimal access is granted only on a top-level group with a Premium or Ultimate license, and is reported as granted only once the requester is found among the group’s members. Returns: the membership it became, with id, username, name, the granted access level, the state, and the membership fields GitLab sends with it. See also: access.request_list_group, access.deny_group, group.members.

  • Meta-tool: gitlab_access, action approve_group
  • Individual tool: gitlab_access_request_approve_group
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Approve at group. Some calls also need: Group: Read at group; Member: Read at group (permissions page)
  • Behavior: writes, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or path
user_id integer yes User ID of the access requester
access_level integer (5, 10, 15, 20, 25, 30, 40, 50) no Access level to grant (5=Minimal access (only on a top-level group with a Premium or Ultimate license), 10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner). Omit it to grant Developer, GitLab’s default. Minimal access is refused on a subgroup and on the Free tier, and reported as an approval only once the requester is found among the group’s members

Approve a pending project access request, granting the user membership at access_level, or Developer when it is left out. A level a project does not grant is refused before the request. Returns: the membership it became, with id, username, name, the granted access level, the state, and the membership fields GitLab sends with it. See also: access.request_list_project, access.deny_project, project.members.

  • Meta-tool: gitlab_access, action approve_project
  • Individual tool: gitlab_access_request_approve_project
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Approve at project (permissions page)
  • Behavior: writes, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or path
user_id integer yes User ID of the access requester
access_level integer (10, 15, 20, 25, 30, 40, 50) no Access level to grant (10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner). Omit it to grant Developer, GitLab’s default. A project grants no other level

Deny a pending group access request, removing it without granting membership. Returns: a success status and confirmation message. See also: access.request_list_group, access.approve_group, group.members.

  • Meta-tool: gitlab_access, action deny_group
  • Individual tool: gitlab_access_request_deny_group
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Delete at group or user (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or path
user_id integer yes User ID of the access requester

Deny a pending project access request, removing it without granting membership. Returns: a success status and confirmation message. See also: access.request_list_project, access.approve_project, project.members.

  • Meta-tool: gitlab_access, action deny_project
  • Individual tool: gitlab_access_request_deny_project
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Delete at project or user (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or path
user_id integer yes User ID of the access requester

Add a new SSH deploy key to a project. Requires confirmation. Returns: the created deploy key with id, title, fingerprint, can_push, and expiry. See also: access.deploy_key_get, access.deploy_key_list_project, access.deploy_key_enable.

  • Meta-tool: gitlab_access, action deploy_key_add
  • Individual tool: gitlab_deploy_key_add
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Key: Create at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
key string yes Public SSH key content
project_id string/integer yes Project ID or path
title string yes Deploy key title
can_push boolean no Whether the key can push to the project
expires_at string no Expiry, an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC

Create an instance-level deploy key (admin only). Returns: the created instance deploy key with id, title, fingerprint, expiry, and project access arrays. See also: access.deploy_key_list_all, access.deploy_key_enable.

  • Meta-tool: gitlab_access, action deploy_key_add_instance
  • Individual tool: gitlab_deploy_key_add_instance
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Key: Create at instance (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
key string yes Public SSH key content
title string yes Deploy key title
expires_at string no Expiry, an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC

Delete a deploy key from a project (removes it from all projects where it is enabled). Returns: a success confirmation. See also: access.deploy_key_get, access.deploy_key_list_project.

  • Meta-tool: gitlab_access, action deploy_key_delete
  • Individual tool: gitlab_deploy_key_delete
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Key: Delete at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
deploy_key_id integer yes Deploy key ID returned by deploy key operations. Do not use deploy_token_id
project_id string/integer yes Project ID or path

Enable an existing deploy key for a project. Requires confirmation. Returns: the enabled deploy key with id, title, fingerprint, and can_push. See also: access.deploy_key_list_all, access.deploy_key_list_project, access.deploy_key_get.

  • Meta-tool: gitlab_access, action deploy_key_enable
  • Individual tool: gitlab_deploy_key_enable
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Key: Enable at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
deploy_key_id integer yes Deploy key ID to enable. Do not use deploy_token_id
project_id string/integer yes Project ID or path

Get a single project deploy key by id. Returns: the deploy key with title, key, fingerprint, fingerprint_sha256, can_push, created_at, and expires_at. See also: access.deploy_key_list_project, access.deploy_key_update, access.deploy_key_delete.

  • Meta-tool: gitlab_access, action deploy_key_get
  • Individual tool: gitlab_deploy_key_get
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Key: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
deploy_key_id integer yes Deploy key ID returned by deploy key operations. Do not use deploy_token_id
project_id string/integer yes Project ID or path

List ALL instance-level SSH deploy keys in one call (admin only). Use this instead of access.deploy_key_list_project when you need every key on the instance. Returns: instance deploy keys with id, title, fingerprint, expiry, projects_with_write_access, projects_with_readonly_access, and pagination metadata. See also: access.deploy_key_add_instance, access.deploy_key_enable, access.deploy_key_list_project.

  • Meta-tool: gitlab_access, action deploy_key_list_all
  • Individual tool: gitlab_deploy_key_list_all
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Key: Read at instance (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
order_by string no Column to order results by (e.g. id, title, created_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
public boolean no Filter by public keys
sort string (asc, desc) no Sort direction (asc, desc)

List a project’s SSH deploy keys with ordering and pagination. Returns: deploy keys with id, title, fingerprint, can_push, expiry, and pagination metadata. See also: access.deploy_key_get, access.deploy_key_add, access.deploy_key_enable.

  • Meta-tool: gitlab_access, action deploy_key_list_project
  • Individual tool: gitlab_deploy_key_list_project
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Key: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or path
order_by string no Column to order results by (e.g. id, title, created_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction (asc, desc)

List the deploy keys across a user’s projects (admin only) with ordering and pagination. Returns: deploy keys with id, title, fingerprint, can_push, expiry, and pagination metadata. See also: access.deploy_key_list_project, access.deploy_key_get, user.get.

  • Meta-tool: gitlab_access, action deploy_key_list_user_project
  • Individual tool: gitlab_deploy_key_list_user_project
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Key: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
user_id string/integer yes User ID or username
order_by string no Column to order results by (e.g. id, title, created_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction (asc, desc)

Update a project deploy key’s title or push permission. Returns: the updated deploy key. See also: access.deploy_key_get, access.deploy_key_list_project, access.deploy_key_delete.

  • Meta-tool: gitlab_access, action deploy_key_update
  • Individual tool: gitlab_deploy_key_update
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Key: Update at project (permissions page)
  • Behavior: writes, idempotent
Parameter Type Mandatory Description
deploy_key_id integer yes Deploy key ID returned by deploy key operations. Do not use deploy_token_id
project_id string/integer yes Project ID or path
can_push boolean no Whether the key can push to the project
title string no New deploy key title

Create a deploy token for a group. Returns: the created deploy token including its one-time secret token value, plus id, name, username, scopes, and expiry. See also: access.deploy_token_list_group, access.deploy_token_get_group, access.deploy_token_delete_group.

  • Meta-tool: gitlab_access, action deploy_token_create_group
  • Individual tool: gitlab_deploy_token_create_group
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Token: Create at group (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
name string yes Deploy token name
scopes string[] yes Array of scopes (read_repository, read_registry, write_registry, read_package_registry, write_package_registry)
expires_at string no Expiry, an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC
username string no Username for the deploy token

Create a deploy token for a project. Returns: the created deploy token including its one-time secret token value, plus id, name, username, scopes, and expiry. See also: access.deploy_token_list_project, access.deploy_token_get_project, access.deploy_token_delete_project.

  • Meta-tool: gitlab_access, action deploy_token_create_project
  • Individual tool: gitlab_deploy_token_create_project
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Token: Create at project (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
name string yes Deploy token name
project_id string/integer yes Project ID or URL-encoded path
scopes string[] yes Array of scopes (read_repository, read_registry, write_registry, read_package_registry, write_package_registry)
expires_at string no Expiry, an ISO 8601 timestamp such as 2025-01-01T00:00:00Z, or a date such as 2025-01-01 read as midnight UTC
username string no Username for the deploy token

Permanently delete a group deploy token by ID. Returns: a success confirmation. Deletion is irreversible. See also: access.deploy_token_list_group, access.deploy_token_get_group, access.deploy_token_create_group.

  • Meta-tool: gitlab_access, action deploy_token_delete_group
  • Individual tool: gitlab_deploy_token_delete_group
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Token: Delete at group (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
deploy_token_id integer yes Deploy token ID
group_id string/integer yes Group ID or URL-encoded path

Permanently delete a project deploy token by ID. Returns: a success confirmation. Deletion is irreversible. See also: access.deploy_token_list_project, access.deploy_token_get_project, access.deploy_token_create_project.

  • Meta-tool: gitlab_access, action deploy_token_delete_project
  • Individual tool: gitlab_deploy_token_delete_project
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Deploy Token: Delete at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
deploy_token_id integer yes Deploy token ID
project_id string/integer yes Project ID or URL-encoded path

Get a single group deploy token by ID. Returns: the deploy token with id, name, username, scopes, revoked/expired state, and expiry. See also: access.deploy_token_list_group, access.deploy_token_create_group, access.deploy_token_delete_group.

  • Meta-tool: gitlab_access, action deploy_token_get_group
  • Individual tool: gitlab_deploy_token_get_group
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Token: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
deploy_token_id integer yes Deploy token ID
group_id string/integer yes Group ID or URL-encoded path

Get a single project deploy token by ID. Returns: the deploy token with id, name, username, scopes, revoked/expired state, and expiry. See also: access.deploy_token_list_project, access.deploy_token_create_project, access.deploy_token_delete_project.

  • Meta-tool: gitlab_access, action deploy_token_get_project
  • Individual tool: gitlab_deploy_token_get_project
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Token: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
deploy_token_id integer yes Deploy token ID
project_id string/integer yes Project ID or URL-encoded path

List ALL deploy tokens across the GitLab instance in one call (admin only). Use this instead of access.deploy_token_list_project or access.deploy_token_list_group when you need every instance-wide token. Returns: deploy tokens with id, name, username, scopes, revoked/expired state, and pagination metadata. See also: access.deploy_token_list_project, access.deploy_token_list_group, access.deploy_token_create_project.

  • Meta-tool: gitlab_access, action deploy_token_list_all
  • Individual tool: gitlab_deploy_token_list_all
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Token: Read at instance (permissions page)
  • Behavior: read-only, idempotent

No parameters.

List deploy tokens owned by a group. Returns: deploy tokens with id, name, username, scopes, revoked/expired state, expiry, and pagination metadata. See also: access.deploy_token_get_group, access.deploy_token_create_group, access.deploy_token_delete_group.

  • Meta-tool: gitlab_access, action deploy_token_list_group
  • Individual tool: gitlab_deploy_token_list_group
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Token: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
order_by string no Column to order results by
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: ‘asc’ or ‘desc’

List deploy tokens owned by a project. Returns: deploy tokens with id, name, username, scopes, revoked/expired state, expiry, and pagination metadata. See also: access.deploy_token_get_project, access.deploy_token_create_project, access.deploy_token_delete_project.

  • Meta-tool: gitlab_access, action deploy_token_list_project
  • Individual tool: gitlab_deploy_token_list_project
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Deploy Token: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
order_by string no Column to order results by
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: ‘asc’ or ‘desc’

Invite a user to a group by email or user ID with an access level. Returns: an invitation result with status, per-email messages, and any users queued for administrator approval. See also: access.invite_list_group, group.group_member_add, access.request_group.

  • Meta-tool: gitlab_access, action invite_group
  • Individual tool: gitlab_group_invite
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Invitation: Create at group (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
access_level integer (5, 10, 15, 20, 25, 30, 40, 50) yes Access level (5=Minimal access (only on a top-level group with a Premium or Ultimate license), 10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner). A group grants no other level
group_id string/integer yes Group ID or URL-encoded path
email string no Email address to invite, or several separated by commas to invite each of them (either email or user_id required)
expires_at string no Expiration date for the invitation (YYYY-MM-DD)
id string/integer no Group ID or URL-encoded path sent in the request body (mirrors the GitLab id parameter. Usually equal to group_id)
invite_source string no Source of the invitation that starts the member creation process
member_role_id (Ultimate) integer no Custom role to assign the new member (Ultimate only)
user_id integer no User ID to invite (either email or user_id required)

List a group’s pending invitations. Returns: pending invitations with invite email, access level, creator, creation and expiry dates, plus pagination metadata. See also: access.invite_group, group.members.

  • Meta-tool: gitlab_access, action invite_list_group
  • Individual tool: gitlab_group_invite_list_pending
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Invitation: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
order_by string no Column to order results by
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
query string no Filter invitations by email or name
sort string (asc, desc) no Sort order: ‘asc’ or ‘desc’

List a project’s pending invitations. Returns: pending invitations with invite email, access level, creator, creation and expiry dates, plus pagination metadata. See also: access.invite_project, project.members.

  • Meta-tool: gitlab_access, action invite_list_project
  • Individual tool: gitlab_project_invite_list_pending
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Invitation: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
order_by string no Column to order results by
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
query string no Filter invitations by email or name
sort string (asc, desc) no Sort order: ‘asc’ or ‘desc’

Invite a user to a project by email or user ID with an access level. Returns: an invitation result with status, per-email messages, and any users queued for administrator approval. See also: access.invite_list_project, project.member_add, access.request_project.

  • Meta-tool: gitlab_access, action invite_project
  • Individual tool: gitlab_project_invite
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Invitation: Create at project (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
access_level integer (10, 15, 20, 25, 30, 40, 50) yes Access level (10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner). A project grants no other level
project_id string/integer yes Project ID or URL-encoded path
email string no Email address to invite, or several separated by commas to invite each of them (either email or user_id required)
expires_at string no Expiration date for the invitation (YYYY-MM-DD)
id string/integer no Project ID or URL-encoded path sent in the request body (mirrors the GitLab id parameter. Usually equal to project_id)
invite_source string no Source of the invitation that starts the member creation process
member_role_id (Ultimate) integer no Custom role to assign the new member (Ultimate only)
user_id integer no User ID to invite (either email or user_id required)

Request access to a group as the authenticated user. Returns: the created access request with id, username, name, requested state, and requested_at timestamp. See also: access.request_list_group, access.approve_group, access.deny_group.

  • Meta-tool: gitlab_access, action request_group
  • Individual tool: gitlab_access_request_request_group
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Create at user (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or path

List pending access requests for a group. Returns: access requests with id, username, name, state, whether the account is locked, the address the user publishes, the requested_at timestamp, and pagination metadata. A pending request carries no access level: GitLab grants one when it is approved. See also: access.approve_group, access.deny_group, group.members.

  • Meta-tool: gitlab_access, action request_list_group
  • Individual tool: gitlab_access_request_list_group
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Access Request: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or path
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc

List pending access requests for a project. Returns: access requests with id, username, name, state, whether the account is locked, the address the user publishes, the requested_at timestamp, and pagination metadata. A pending request carries no access level: GitLab grants one when it is approved. See also: access.approve_project, access.deny_project, project.members.

  • Meta-tool: gitlab_access, action request_list_project
  • Individual tool: gitlab_access_request_list_project
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Access Request: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or path
order_by string no Column to order results by (e.g. id)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort order: asc or desc

Request access to a project as the authenticated user. Returns: the created access request with id, username, name, requested state, and requested_at timestamp. See also: access.request_list_project, access.approve_project, access.deny_project.

  • Meta-tool: gitlab_access, action request_project
  • Individual tool: gitlab_access_request_request_project
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Access Request: Create at user (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or path

Use for GitLab group access tokens: this action creates a group-scoped API token.

  • Meta-tool: gitlab_access, action token_group_create
  • Individual tool: gitlab_group_access_token_create
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Create at group (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
name string yes Token name
scopes string[] yes Token scopes: api, read_api, read_repository, write_repository, etc.
access_level integer (10, 15, 20, 25, 30, 40, 50) no Access level of the token (10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner), no higher than the caller’s own. GitLab grants Maintainer when it is left out
description string no Token description
expires_at string no Expiry date in YYYY-MM-DD format

Use for GitLab group access tokens: this action gets a group-scoped API token.

  • Meta-tool: gitlab_access, action token_group_get
  • Individual tool: gitlab_group_access_token_get
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Resource Access Token: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
token_id integer yes Access token ID

Use for GitLab group access tokens: this action lists group-scoped API tokens.

  • Meta-tool: gitlab_access, action token_group_list
  • Individual tool: gitlab_group_access_token_list
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Resource Access Token: Read at group (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
created_after string no Return tokens created on or after this date (YYYY-MM-DD)
created_before string no Return tokens created on or before this date (YYYY-MM-DD)
expires_after string no Return tokens that expire on or after this date (YYYY-MM-DD)
expires_before string no Return tokens that expire on or before this date (YYYY-MM-DD)
last_used_after string no Return tokens last used on or after this date (YYYY-MM-DD)
last_used_before string no Return tokens last used on or before this date (YYYY-MM-DD)
order_by string no Column to order results by (e.g. created_at, expires_at, last_used_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
revoked boolean no Filter by revoked status: true to return only revoked tokens, false for non-revoked
search string no Filter tokens by name (partial match)
sort string (created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc) no Sort order: created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc
state string (active, inactive) no Token state filter: active, inactive

Use for GitLab group access tokens: this action revokes a group-scoped API token.

  • Meta-tool: gitlab_access, action token_group_revoke
  • Individual tool: gitlab_group_access_token_revoke
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Delete at group (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
token_id integer yes Access token ID to revoke

Rotate a group access token: GitLab revokes it and issues a new token value in one step, so the old token stops working at once. Optionally set a new expiry date. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_group_list, access.token_group_revoke.

  • Meta-tool: gitlab_access, action token_group_rotate
  • Individual tool: gitlab_group_access_token_rotate
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Rotate at group (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
token_id integer yes Access token ID
expires_at string no New expiry date in YYYY-MM-DD format

Rotate the group access token used for the current request: GitLab revokes it and issues a new value in one step, so this token stops working at once. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_group_rotate, access.token_personal_rotate_self.

  • Meta-tool: gitlab_access, action token_group_rotate_self
  • Individual tool: gitlab_group_access_token_rotate_self
  • Tier: Free
  • Classic or OAuth token: api; not an OAuth token, which GitLab refuses on POST /groups/:id/access_tokens/self/rotate
  • Fine-grained token: Resource Access Token: Rotate at group (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
group_id string/integer yes Group ID or URL-encoded path
expires_at string no New expiry date in YYYY-MM-DD format

Use for GitLab personal access tokens: this action gets a personal-scoped API token.

  • Meta-tool: gitlab_access, action token_personal_get
  • Individual tool: gitlab_personal_access_token_get
  • Tier: Free
  • Classic or OAuth token: read_api (or api); GitLab refuses an OAuth token on GET /personal_access_tokens/self, which this action sends for some inputs
  • Fine-grained token: Personal Access Token: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
token_id integer no Access token ID (required, use 0 for current token)

Use for GitLab personal access tokens: this action lists personal-scoped API tokens.

  • Meta-tool: gitlab_access, action token_personal_list
  • Individual tool: gitlab_personal_access_token_list
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Personal Access Token: Read at user (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
created_after string no Return tokens created on or after this date (YYYY-MM-DD)
created_before string no Return tokens created on or before this date (YYYY-MM-DD)
expires_after string no Return tokens that expire on or after this date (YYYY-MM-DD)
expires_before string no Return tokens that expire on or before this date (YYYY-MM-DD)
last_used_after string no Return tokens last used on or after this date (YYYY-MM-DD)
last_used_before string no Return tokens last used on or before this date (YYYY-MM-DD)
order_by string no Column to order results by (e.g. created_at, expires_at, last_used_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
revoked boolean no Filter by revoked status: true to return only revoked tokens, false for non-revoked
search string no Search by token name
sort string (created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc) no Sort order: created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc
state string (active, inactive) no Token state filter: active, inactive
user_id integer no Filter by user ID (admin only)

Use for GitLab personal access tokens: this action revokes a personal-scoped API token.

  • Meta-tool: gitlab_access, action token_personal_revoke
  • Individual tool: gitlab_personal_access_token_revoke
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Personal Access Token: Revoke at user (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
token_id integer yes Access token ID to revoke

Use for GitLab personal access tokens: this action revokes the personal-scoped token that authenticates this request itself, with no token_id parameter.

  • Meta-tool: gitlab_access, action token_personal_revoke_self
  • Individual tool: gitlab_personal_access_token_revoke_self
  • Tier: Free
  • Classic or OAuth token: read_api (or api); not an OAuth token, which GitLab refuses on DELETE /personal_access_tokens/self
  • Fine-grained token: Personal Access Token: Revoke at user (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent

No parameters.

Rotate a personal access token: GitLab revokes it and issues a new token value in one step, so the old token stops working at once. Optionally set a new expiry date. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_personal_list, access.token_personal_revoke.

  • Meta-tool: gitlab_access, action token_personal_rotate
  • Individual tool: gitlab_personal_access_token_rotate
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Personal Access Token: Rotate at user (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
token_id integer yes Access token ID
expires_at string no New expiry date in YYYY-MM-DD format

Rotate the personal access token used for the current request: GitLab revokes it and issues a new value in one step, so this token stops working at once. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_personal_rotate, access.token_project_rotate_self.

  • Meta-tool: gitlab_access, action token_personal_rotate_self
  • Individual tool: gitlab_personal_access_token_rotate_self
  • Tier: Free
  • Classic or OAuth token: api; not an OAuth token, which GitLab refuses on POST /personal_access_tokens/self/rotate
  • Fine-grained token: Personal Access Token: Rotate at user (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
expires_at string no New expiry date in YYYY-MM-DD format

Use for GitLab project access tokens: this action creates a project-scoped API token.

  • Meta-tool: gitlab_access, action token_project_create
  • Individual tool: gitlab_project_access_token_create
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Create at project (permissions page)
  • Behavior: writes, not idempotent
Parameter Type Mandatory Description
name string yes Token name
project_id string/integer yes Project ID or URL-encoded path
scopes string[] yes Token scopes: api, read_api, read_repository, write_repository, etc.
access_level integer (10, 15, 20, 25, 30, 40, 50) no Access level of the token (10=Guest, 15=Planner, 20=Reporter, 25=Security Manager, 30=Developer, 40=Maintainer, 50=Owner). Planner (15) and Security Manager (25) are granted only by an Owner of the project or by a member who holds that role, and any other level no higher than the caller’s own. GitLab grants Maintainer when it is left out
description string no Token description
expires_at string no Expiry date in YYYY-MM-DD format

Use for GitLab project access tokens: this action gets a project-scoped API token.

  • Meta-tool: gitlab_access, action token_project_get
  • Individual tool: gitlab_project_access_token_get
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Resource Access Token: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
token_id integer yes Access token ID

Use for GitLab project access tokens: this action lists project-scoped API tokens.

  • Meta-tool: gitlab_access, action token_project_list
  • Individual tool: gitlab_project_access_token_list
  • Tier: Free
  • Classic or OAuth token: read_api (or api)
  • Fine-grained token: Resource Access Token: Read at project (permissions page)
  • Behavior: read-only, idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
order_by string no Column to order results by (e.g. created_at, expires_at, last_used_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc) no Sort order: created_asc, created_desc, expires_asc, expires_desc, last_used_asc, last_used_desc, name_asc, name_desc
state string (active, inactive) no Token state filter: active, inactive

Use for GitLab project access tokens: this action revokes a project-scoped API token.

  • Meta-tool: gitlab_access, action token_project_revoke
  • Individual tool: gitlab_project_access_token_revoke
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Delete at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
token_id integer yes Access token ID to revoke

Rotate a project access token: GitLab revokes it and issues a new token value in one step, so the old token stops working at once. Optionally set a new expiry date. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_project_list, access.token_project_revoke.

  • Meta-tool: gitlab_access, action token_project_rotate
  • Individual tool: gitlab_project_access_token_rotate
  • Tier: Free
  • Classic or OAuth token: api
  • Fine-grained token: Resource Access Token: Rotate at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
token_id integer yes Access token ID
expires_at string no New expiry date in YYYY-MM-DD format

Rotate the project access token used for the current request: GitLab revokes it and issues a new value in one step, so this token stops working at once. Requires confirmation. Returns: JSON with the rotated access token including the new token value, shown only once. See also: access.token_project_rotate, access.token_personal_rotate_self.

  • Meta-tool: gitlab_access, action token_project_rotate_self
  • Individual tool: gitlab_project_access_token_rotate_self
  • Tier: Free
  • Classic or OAuth token: api; not an OAuth token, which GitLab refuses on POST /projects/:id/access_tokens/self/rotate
  • Fine-grained token: Resource Access Token: Rotate at project (permissions page)
  • Behavior: writes, destructive (needs confirmation), not idempotent
Parameter Type Mandatory Description
project_id string/integer yes Project ID or URL-encoded path
expires_at string no New expiry date in YYYY-MM-DD format