Get protected branch
get_protected_branchRetrieve details of a specific protected branch to review its push, merge, unprotect, and code-owner approval settings. Query by project ID or path and branch name to verify branch protection policies.
Instructions
Inspect one protected branch and its push, merge, unprotect, and code-owner approval policy.
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": "<project>",
"name": "<name>"
},
"name": "get_protected_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |