get_pull_request
Retrieve detailed information about a specific Bitbucket pull request using workspace, repository, and PR ID parameters.
Instructions
Get details of a specific pull request
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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>",
"pr_id": "<pr_id>"
},
"name": "get_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| pr_id | Yes | The pull request ID |
Implementation Reference
- src/BitbucketClient.ts:135-138 (handler)The actual implementation of getPullRequest that interacts with the Bitbucket API.
async getPullRequest(workspace: string, repoSlug: string, prId: number): Promise<PullRequest> { const response = await this.api.get(`/repositories/${workspace}/${repoSlug}/pullrequests/${prId}`); return response.data; } - src/index.ts:485-500 (handler)The MCP tool handler in index.ts that calls BitbucketClient.getPullRequest.
case 'get_pull_request': { const { workspace, repo_slug, pr_id } = args as { workspace: string; repo_slug: string; pr_id: number; }; const pullRequest = await client.getPullRequest(workspace, repo_slug, pr_id); return { content: [ { type: 'text', text: JSON.stringify(pullRequest, null, 2), }, ], }; }