Get protected branches
gitlab_get_protected_branchesRetrieve protected branches for a GitLab project to review branch restrictions, access rules, and merge and push permissions.
Instructions
Get information about protected branches in a project.
Args: **kwargs: Additional parameters for the request (e.g., project_id).
Returns: Response: A wrapper containing the original response and a list of Branch models.
Raises: MissingParameterError: If the project_id is missing. ParameterError: If invalid parameters are provided.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_get_protected_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| branch | No | ||
| per_page | No | ||
| max_pages | No | ||
| project_id | No |