Delete Branch Tool
delete_branch_toolDeletes a branch from a GitLab repository by specifying the project ID or path and branch name, helping clean up merged or obsolete branches.
Instructions
Delete a branch from a GitLab repository.
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_id": "<project_id>",
"branch": "<branch>"
},
"name": "delete_branch_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name to delete | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||