Get Branch Protection
gitlab_get_branch_protectionRetrieve a specific protected branch rule by exact branch name or wildcard to verify branch protection settings in GitLab.
Instructions
Retrieve a specific protected branch rule by exact branch name or wildcard.
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>",
"branch_name": "<branch_name>"
},
"name": "gitlab_get_branch_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| branch_name | Yes |