List protected branches
list_protected_branchesRetrieve the protected-branch access policies for a GitLab project. Specify a project by ID or path, then filter or paginate results to review which branches are protected and who can push or merge.
Instructions
Inspect protected-branch access policy for a GitLab project.
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": "list_protected_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| search | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |