decline_pull_request
Decline a pull request in Bitbucket Server by specifying project, repository, pull request ID, version, and an optional reason.
Instructions
Decline/reject a pull request in a Bitbucket Server 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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"version": "<version>"
},
"name": "decline_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | The decline message/reason | |
| version | Yes | The current version of the pull request | |
| repoSlug | Yes | The repository slug | |
| projectKey | Yes | The project key (e.g., PROJ) | |
| pullRequestId | Yes | The pull request ID |