Compliance policy settings
One administrator setting of the instance: the namespace that centrally manages security policies, held as csp_namespace_id. compliance_policy.get reads it and compliance_policy.update sets it.
Sample questions
Section titled “Sample questions”- “Which namespace manages the instance’s security policies?”
- “Set the security policy namespace to group 12”
How to call it
Section titled “How to call it”- Dynamic, the default surface: call
gitlab_execute_actionwithactionset to the action’s ID, such ascompliance_policy.get, and its parameters inparams.gitlab_find_actionfinds an ID from a description of the task. - Meta (
GITLAB_MCP_TOOL_SURFACE=meta): callgitlab_compliance_policywithactionset to the action’s name, such asget, and its parameters inparams. - Individual (
GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such asgitlab_get_compliance_policy_settings, with its parameters as the arguments.
Availability
Section titled “Availability”How many of these actions an instance serves at each tier, out of a total of 2:
- Free: 0
- Premium: 0
- Ultimate: 2
Read-only actions: 1 of 2, the ones a deployment in read-only mode keeps.
Actions
Section titled “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.
| Action | Individual |
|---|---|
compliance_policy.get | gitlab_get_compliance_policy_settings |
compliance_policy.update | gitlab_update_compliance_policy_settings |
compliance_policy.get
Section titled “compliance_policy.get”Get the instance compliance policy settings. Returns: the centralized compliance security policy (CSP) namespace ID, or unset when no namespace hosts the compliance policy project. See also:
compliance_policy.update,group.get.
- Meta-tool:
gitlab_compliance_policy, actionget - Individual tool:
gitlab_get_compliance_policy_settings - Tier: Ultimate
- Behavior: read-only, idempotent
No parameters.
compliance_policy.update
Section titled “compliance_policy.update”Update the instance compliance policy settings. Returns: the compliance policy settings with the newly bound centralized compliance security policy (CSP) namespace ID. See also:
compliance_policy.get,group.get.
- Meta-tool:
gitlab_compliance_policy, actionupdate - Individual tool:
gitlab_update_compliance_policy_settings - Tier: Ultimate
- Behavior: writes, idempotent
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
csp_namespace_id | integer | no | Namespace ID for the compliance security policy project |