get_pull_request
Retrieve pull request metadata, reviewer status, merge info, comments, and changed files for code review or follow-up changes. Disable comments and file changes for a metadata-only read.
Instructions
Get a pull request: metadata, reviewer status, merge info, comments and changed files. Set include_comments/include_file_changes false for a 1-call metadata read; include_tasks lists open/resolved tasks. Response carries version for follow-up mutations.
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>",
"repository": "<repository>",
"pull_request_id": "<pull_request_id>"
},
"name": "get_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Project key (e.g., PROJ) | |
| repository | Yes | Repository slug | |
| comment_limit | No | Max comments embedded (default 20) | |
| include_tasks | No | Embed PR tasks (Server only, default false) | |
| pull_request_id | Yes | Pull request ID | |
| include_comments | No | Embed active comments (default true) | |
| include_file_changes | No | Embed changed-file list (default true) |