Get review policy
get-review-policy-toolThe team's review policy: which one is set, whether it holds merges, whether coding agents
merge their pull requests when ready, the sensitive paths, how many people approve a large or
sensitive change, what each policy asks of a change, and whether an AI review has reported
from repository.
Call it when someone asks how their pull requests are reviewed, or before changing that
with set-review-policy-tool, so you can explain the choices in their words. When the policy
relies on an AI review that has not reported yet, setup has the workflow file to commit
and the steps around it; set-up-ai-review-tool walks through them and confirms it worked.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-review-policy-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | No | The repository you are working in, as "owner/name". It binds the call to the team, and says where the AI review workflow has to be. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name. | |
| setup | No | When the policy relies on an AI review and none has reported: workflow_path, workflow (the file to commit) and steps. Null otherwise. | |
| policy | No | skip_trivial | risk_based | ai_review_all, or null when there is no policy. | |
| policies | Yes | Each policy: value, label, and rule — what it asks of a change. | |
| ai_review | Yes | Whether an AI review has reported (seen), who (by) and how long ago (ago). | |
| holds_merges | Yes | Whether the Review policy check fails until the review it asks for is in. | |
| policy_label | No | The policy as the settings page names it. | |
| sensitive_paths | Yes | Paths that need a person under risk_based, whatever their size. | |
| careful_approvals | Yes | How many people must approve a change in sensitive_paths or over the size standard under risk_based: 1 or 2. | |
| director_approves | Yes | Whether Coderbuds approves on GitHub once whoever directed the coding agent has reviewed its pull request, so a ruleset requiring one approval lets it merge. Never for a careful review, CI, CODEOWNERS or agent instructions, or a change that cannot be undone. Acts only while holds_merges is on. | |
| merges_when_ready | Yes | Whether the coding agent that opened a pull request merges it once it has its review and every check passed. Acts only while holds_merges is on. |