gitlab_branches_list
List a project's branches to confirm the source branch exists and find the target branch before creating a merge request.
Instructions
List a project's branches. Useful before gitlab_mr_create to confirm the source branch exists and to find the target branch.
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": "gitlab_branches_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number; see pagination.nextPage in the result | |
| search | No | substring search | |
| perPage | No | items per page, max 100 (GitLab default is 20) | |
| project | Yes | project id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| pagination | Yes |