Delete repository branch
delete_branchDelete a GitLab repository branch, excluding protected branches, by specifying the project and branch name.
Instructions
Delete a GitLab repository branch. Protected branches cannot be deleted through this operation.
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>",
"branch": "<branch>"
},
"name": "delete_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |