canMergePullRequest
Checks whether a pull request can merge in Bitbucket Data Center by repository slug and PR ID, helping prevent failed merge attempts.
Instructions
Check whether a PR can merge
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": {
"repoSlug": "<repoSlug>",
"prId": "<prId>"
},
"name": "canMergePullRequest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | ||
| repoSlug | Yes | ||
| projectKey | No |