list_branches
List or search branches in a GitLab repository to obtain branch names and commit metadata for use as a ref in other tools.
Instructions
List or search branches in a CERN GitLab repository. Returns branch names and commit metadata so a branch can be selected and passed as the 'ref' argument to repository content and code-search tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number to retrieve (default: 1) | |
| search | No | Optional branch-name filter. GitLab supports partial matches and anchors such as '^main$' for an exact match. | |
| project | Yes | Project identifier — either a numeric ID (e.g. '12345') or a path (e.g. 'atlas/athena') | |
| per_page | No | Number of branches to return (default: 20, max: 100) |