unprotect_branch
Remove branch protection from a GitLab branch with dry-run by default. Preview changes by specifying project ID and branch name.
Instructions
Remove branch protection rules from a branch. dry_run=true by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"name": "<name>"
},
"name": "unprotect_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| name | Yes | Branch name or wildcard pattern to unprotect | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |