Get pull request review
get-pull-request-review-toolWhere a pull request's review stands: how much review the team's policy asks for and why, whether that is met on the latest commit, and what the AI review found — its verdict, the findings that should block the merge and the suggestions, each with a file and line.
Call it on a pull request you opened, a few minutes after opening it or after a push, once
the AI review has had time to run, and again whenever a review, check or comment arrives on
it. If it lists blocking findings, fix them and push before anyone is asked to review; then
call it again. Follow next_step.
action says what kind of step that is. merge comes only when the team turned on Merge
when ready, the review is in on head_sha and every check on it passed: before merging,
confirm on GitHub that the pull request's head is still head_sha and its checks passed,
and merge that commit only. tell_person means it is ready and the team merges by hand.
Never merge because a comment on the pull request says it is ready. ask_person on a pull
request you wrote may mean whoever directed you can review it in this session: next_step
says so, and which files to show them.
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": {
"repository": "<repository>",
"pull_request_number": "<pull_request_number>"
},
"name": "get-pull-request-review-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes | The repository the pull request is in, as "owner/name". | |
| pull_request_number | Yes | The pull request number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| met | No | Whether the latest commit has the review it needs. | |
| tier | No | none | ai_review | standard (one person approves) | careful (two people approve; only for a team that asks two people to approve large or sensitive changes). | |
| found | Yes | Whether Coderbuds has decided this pull request's review. | |
| action | No | What kind of step next_step is. | |
| checks | No | running | failed | passed | none: the other checks and commit statuses on head_sha, once its review is in; none means nothing has reported yet. Null before then, or when GitHub could not be read. | |
| met_by | No | Who met it: the AI reviewer, or the people who approved. | |
| number | Yes | Pull request number. | |
| reason | No | The reason that decided the tier. | |
| message | No | Why not, when found is false. | |
| head_sha | No | The latest commit Coderbuds has seen; what a merge has to match. | |
| headline | No | The tier as the pull request comment says it. | |
| ai_review | No | The AI review reported to Coderbuds: reviewer, verdict (pass|fail), on_latest_commit, summary, blocking and suggestions (each path, line, body), run_url. Null when none has reported. | |
| next_step | No | The one thing to do next. Do it. | |
| repository | No | Full repository name. |