get_pull_request
Retrieve details of a specific pull request including source, destination, and status from Bitbucket Cloud.
Instructions
Get details of a specific pull request including its source, destination, and status.
Input Schema
TableJSON 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/tools/index.ts:929-932 (handler)The handler logic for the 'get_pull_request' tool. It validates input parameters using Zod schema and calls the PullRequestsAPI.get method to fetch the pull request details.case 'get_pull_request': { const params = toolSchemas.get_pull_request.parse(args); return this.prs.get(params.workspace, params.repo_slug, params.pr_id); }
- src/tools/index.ts:64-68 (schema)Zod input schema for the 'get_pull_request' tool, defining required parameters: workspace, repo_slug, and pr_id.get_pull_request: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), pr_id: z.number().describe('The pull request ID'), }),
- src/tools/index.ts:408-421 (registration)MCP tool registration for 'get_pull_request', including name, description, and JSON schema for input validation.{ name: 'get_pull_request', description: 'Get details of a specific pull request including its source, destination, and status.', inputSchema: { type: 'object' as const, properties: { workspace: { type: 'string', description: 'The workspace slug' }, repo_slug: { type: 'string', description: 'The repository slug' }, pr_id: { type: 'number', description: 'The pull request ID' }, }, required: ['workspace', 'repo_slug', 'pr_id'], }, },