# Security attributes

Security attributes that classify GitLab groups and projects under a security category, through GitLab's GraphQL API.

Source: https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/
Updated: 2026-11-22

---

A security attribute is a label from a [security category](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-category/) that classifies a group or a project, such as its business impact. These actions create, update and delete attributes, apply and remove them on one project, and add, remove or replace them across several groups and projects at once. They are classification metadata, apart from the scanner output on [Vulnerabilities](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/vulnerability/).

## Sample questions

- "Create a security attribute called High under category 7"
- "Apply security attribute 9 to project 42"
- "Replace the security attributes of these projects"

## How to call it

- **Dynamic**, the default surface: call `gitlab_execute_action` with `action` set to the action's ID, such as `security_attribute.bulk_update`, 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_security_attribute` with `action` set to the action's name, such as `bulk_update`, and its parameters in `params`.
- **Individual** (`GITLAB_MCP_TOOL_SURFACE=individual`): call the action's own tool, such as `gitlab_bulk_update_security_attributes`, with its parameters as the arguments.

## Availability

How many of these actions an instance serves at each tier, out of a total of 5:

- **Free**: 0
- **Premium**: 0
- **Ultimate**: 5

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

## Actions

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](https://docs.jmrp.io/gitlab-mcp-server/operations/security/#destructive-actions)).

| Action | Individual |
| --- | --- |
| [`security_attribute.bulk_update`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributebulk_update) | `gitlab_bulk_update_security_attributes` |
| [`security_attribute.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributecreate) | `gitlab_create_security_attribute` |
| [`security_attribute.delete`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributedelete) | `gitlab_delete_security_attribute` |
| [`security_attribute.project_update`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributeproject_update) | `gitlab_update_project_security_attributes` |
| [`security_attribute.update`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributeupdate) | `gitlab_update_security_attribute` |

### `security_attribute.bulk_update`

> Add, remove, or replace GitLab security attributes on multiple groups and projects via GraphQL. Requires Premium or Ultimate. Returns: bulk update status, execution mode, and selected target/attribute IDs. See also: [`security_attribute.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributecreate), [`project.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/project/#projectget), [`group.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/group/#groupget). API docs: [`https://docs.gitlab.com/api/graphql/reference/#mutationbulkupdatesecurityattributes`](https://docs.gitlab.com/api/graphql/reference/#mutationbulkupdatesecurityattributes)

- **Meta-tool**: `gitlab_security_attribute`, action `bulk_update`
- **Individual tool**: `gitlab_bulk_update_security_attributes`
- **Tier**: Ultimate
- **Classic or OAuth token**: `api`
- **Fine-grained token**: Not reachable at this release: GitLab declares no fine-grained permission for the mutation `bulkUpdateSecurityAttributes`, and refuses it ([permissions page](https://docs.jmrp.io/gitlab-mcp-server/reference/fine-grained-permissions/#security_attribute))
- **Behavior**: writes, destructive (needs confirmation), idempotent

| Parameter | Type | Mandatory | Description |
| --- | --- | --- | --- |
| `attribute_ids` | `integer[]` | yes | Security attribute IDs to apply |
| `mode` | `string` | yes | Bulk update mode: ADD, REMOVE, or REPLACE |
| `group_ids` | `integer[]` | no | Numeric group IDs to update |
| `project_ids` | `integer[]` | no | Numeric project IDs to update |

Also needs at least one of: `group_ids`; `project_ids`.

### `security_attribute.create`

> Create one or more GitLab security attributes under a security category via GraphQL. Requires Premium or Ultimate. Returns: created security attributes and their categories. See also: [`security_category.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-category/#security_categorycreate), [`project.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/project/#projectget), [`group.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/group/#groupget). API docs: [`https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributecreate`](https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributecreate)

- **Meta-tool**: `gitlab_security_attribute`, action `create`
- **Individual tool**: `gitlab_create_security_attribute`
- **Tier**: Ultimate
- **Classic or OAuth token**: `api`
- **Fine-grained token**: Not reachable at this release: GitLab declares no fine-grained permission for `SecurityAttribute` in the answer, so the write commits and its answer is lost ([permissions page](https://docs.jmrp.io/gitlab-mcp-server/reference/fine-grained-permissions/#security_attribute))
- **Behavior**: writes, not idempotent

| Parameter | Type | Mandatory | Description |
| --- | --- | --- | --- |
| `attributes` | `object[]` | yes | Security attributes to create |
| `category_id` | `integer` | yes | Numeric security category ID |
| `namespace_id` | `integer` | yes | Numeric namespace ID |

### `security_attribute.delete`

> Delete a GitLab security attribute via GraphQL. Requires Premium or Ultimate. Returns: deletion confirmation. See also: [`security_category.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-category/#security_categorycreate), [`project.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/project/#projectget), [`group.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/group/#groupget). API docs: [`https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributedestroy`](https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributedestroy)

- **Meta-tool**: `gitlab_security_attribute`, action `delete`
- **Individual tool**: `gitlab_delete_security_attribute`
- **Tier**: Ultimate
- **Classic or OAuth token**: `api`
- **Fine-grained token**: Security Attribute: Delete at group ([permissions page](https://docs.jmrp.io/gitlab-mcp-server/reference/fine-grained-permissions/#security_attribute))
- **Behavior**: writes, destructive (needs confirmation), idempotent

| Parameter | Type | Mandatory | Description |
| --- | --- | --- | --- |
| `attribute_id` | `integer` | yes | Numeric security attribute ID |

### `security_attribute.project_update`

> Add or remove GitLab security attributes on a project via GraphQL. Requires Premium or Ultimate. Returns: project security attribute assignments. See also: [`security_attribute.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-attribute/#security_attributecreate), [`project.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/project/#projectget). API docs: [`https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributeprojectupdate`](https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributeprojectupdate)

- **Meta-tool**: `gitlab_security_attribute`, action `project_update`
- **Individual tool**: `gitlab_update_project_security_attributes`
- **Tier**: Ultimate
- **Classic or OAuth token**: `api`
- **Fine-grained token**: Security Attribute: Update at project ([permissions page](https://docs.jmrp.io/gitlab-mcp-server/reference/fine-grained-permissions/#security_attribute))
- **Behavior**: writes, destructive (needs confirmation), idempotent

| Parameter | Type | Mandatory | Description |
| --- | --- | --- | --- |
| `project_id` | `integer` | yes | Numeric project ID |
| `add_attribute_ids` | `integer[]` | no | Security attribute IDs to add |
| `remove_attribute_ids` | `integer[]` | no | Security attribute IDs to remove |

Also needs at least one of: `add_attribute_ids`; `remove_attribute_ids`.

### `security_attribute.update`

> Update a GitLab security attribute name, description, or color via GraphQL. Requires Premium or Ultimate. Returns: updated security attribute metadata. See also: [`security_category.create`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/security-category/#security_categorycreate), [`project.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/project/#projectget), [`group.get`](https://docs.jmrp.io/gitlab-mcp-server/reference/tools/group/#groupget). API docs: [`https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributeupdate`](https://docs.gitlab.com/api/graphql/reference/#mutationsecurityattributeupdate)

- **Meta-tool**: `gitlab_security_attribute`, action `update`
- **Individual tool**: `gitlab_update_security_attribute`
- **Tier**: Ultimate
- **Classic or OAuth token**: `api`
- **Fine-grained token**: Not reachable at this release: GitLab declares no fine-grained permission for `SecurityAttribute` in the answer, so the write commits and its answer is lost ([permissions page](https://docs.jmrp.io/gitlab-mcp-server/reference/fine-grained-permissions/#security_attribute))
- **Behavior**: writes, idempotent

| Parameter | Type | Mandatory | Description |
| --- | --- | --- | --- |
| `attribute_id` | `integer` | yes | Numeric security attribute ID |
| `color` | `string` | no | New security attribute color as a hex code (e.g. \#FF0000) |
| `description` | `string` | no | New security attribute description |
| `name` | `string` | no | New security attribute name |

Also needs at least one of: `name`; `description`; `color`.
