Skip to content

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.

  • “Which namespace manages the instance’s security policies?”
  • “Set the security policy namespace to group 12”
  • Dynamic, the default surface: call gitlab_execute_action with action set to the action’s ID, such as compliance_policy.get, 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_compliance_policy with action set to the action’s name, such as get, and its parameters in params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such as gitlab_get_compliance_policy_settings, with its parameters as the arguments.

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.

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.

ActionIndividual
compliance_policy.getgitlab_get_compliance_policy_settings
compliance_policy.updategitlab_update_compliance_policy_settings

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, action get
  • Individual tool: gitlab_get_compliance_policy_settings
  • Tier: Ultimate
  • Behavior: read-only, idempotent

No parameters.

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, action update
  • Individual tool: gitlab_update_compliance_policy_settings
  • Tier: Ultimate
  • Behavior: writes, idempotent
ParameterTypeMandatoryDescription
csp_namespace_idintegernoNamespace ID for the compliance security policy project