delete_pull_request
Decline and delete a pull request on Bitbucket Server by providing the repository and pull request ID, with an optional reason.
Instructions
Delete a pull request by declining it
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": {
"repository": "<repository>",
"prId": "<prId>"
},
"name": "delete_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Bitbucket project key | |
| repository | Yes | Repository slug | |
| prId | Yes | Pull request ID | |
| message | No | Reason for deleting/declining |