Skip to main content
Glama

Get pull request review

get-pull-request-review-tool
Read-onlyIdempotent

Where 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

NameRequiredDescriptionDefault
repositoryYesThe repository the pull request is in, as "owner/name".
pull_request_numberYesThe pull request number.

Output Schema

NameRequiredDescriptionDefault
metNoWhether the latest commit has the review it needs.
tierNonone | ai_review | standard (one person approves) | careful (two people approve; only for a team that asks two people to approve large or sensitive changes).
foundYesWhether Coderbuds has decided this pull request's review.
actionNoWhat kind of step next_step is.
checksNorunning | 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_byNoWho met it: the AI reviewer, or the people who approved.
numberYesPull request number.
reasonNoThe reason that decided the tier.
messageNoWhy not, when found is false.
head_shaNoThe latest commit Coderbuds has seen; what a merge has to match.
headlineNoThe tier as the pull request comment says it.
ai_reviewNoThe 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_stepNoThe one thing to do next. Do it.
repositoryNoFull repository name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / tier / description
      Previous value: -"none | ai_review | standard | careful."New value: +"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)."
  2. Changed2 schema fields changed
    • changedOutput schema / properties / ai_review / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedOutput schema / properties / met_by / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  3. Changed3 schema fields changed
    • addedOutput schema / properties / action
      Added value: +{
      +  "description": "What kind of step next_step is.",
      +  "enum": [
      +    "merge",
      +    "tell_person",
      +    "wait",
      +    "fix",
      +    "ask_person"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / checks
      Added value: +{
      +  "description": "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.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / head_sha
      Added value: +{
      +  "description": "The latest commit Coderbuds has seen; what a merge has to match.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnlyHint and idempotentHint, and the description adds substantial context beyond them: the shape of `action` (merge, tell_person, ask_person), the precondition that merge only comes when Merge-when-ready is on, the review is in on `head_sha` and all checks passed, and the requirement to re-verify head and checks on GitHub before merging that exact commit. That is real operational disclosure, though it does not discuss staleness, rate limits, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what the tool returns, then when to call, then how to interpret `action` — a sensible order. It is dense but nearly every sentence carries operational meaning; the merge-verification sentences are long and could be tightened into shorter directives without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not document return fields, yet it still explains the semantics of `next_step` and `action`, covers the calling cadence, and states the merge precondition. What is missing is only routing to sibling tools for deeper policy or finding detail, which is a minor gap for a two-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for both required parameters, so the schema already explains `repository` as "owner/name" and `pull_request_number` as the PR number. The description adds only an implicit constraint that the pull request is one you opened, with no extra syntax or format detail, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (a pull request's review status) and enumerates exactly what is returned: the team policy requirement and its rationale, whether it is met on the latest commit, and the AI review verdict, blocking findings and suggestions with file and line. That is far more specific than a restatement of the name, though it never names a sibling such as get-review-policy-tool or get-self-review-findings-tool to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Timing and workflow are explicit: call it on a pull request you opened, a few minutes after opening or after a push, and again whenever a review, check or comment arrives; fix blocking findings and push, then call again; follow `next_step`. It also states a guardrail (never merge because a comment says it is ready). It stops short of naming alternatives for cases where more policy or self-review detail is wanted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources