list_protected_branches
Retrieve branch-protection rules for a GitLab or Gitea project, including force-push flags, to audit which branches restrict pushes and protect release workflows.
Instructions
[READ] Branch-protection rules for a project (incl. force-push flags).
Returns {project, protections:[...], returned, limit, truncated}.
Args: project: Project id or full path. limit: Max rows to return (default 100). target: Server target name from config; omit for the 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": "<project>"
},
"name": "list_protected_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| target | No | ||
| project | Yes |