Delete merged branches
gitlab_delete_merged_branchesDelete all merged branches in a GitLab project to clear stale branches after merge and reduce repository clutter.
Instructions
Delete all merged branches in a project.
Args: **kwargs: Additional parameters for the request (e.g., project_id).
Returns: Response: The response object (no data for successful deletion).
Raises: MissingParameterError: If required parameters are 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_delete_merged_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| branch | No | ||
| confirm | No | Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt. | |
| per_page | No | ||
| max_pages | No | ||
| project_id | No |