Skip to main content
Glama

Get review policy

get-review-policy-tool
Read-onlyIdempotent

The 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

NameRequiredDescriptionDefault
repositoryNoThe 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

NameRequiredDescriptionDefault
teamYesTeam name.
setupNoWhen the policy relies on an AI review and none has reported: workflow_path, workflow (the file to commit) and steps. Null otherwise.
policyNoskip_trivial | risk_based | ai_review_all, or null when there is no policy.
policiesYesEach policy: value, label, and rule — what it asks of a change.
ai_reviewYesWhether an AI review has reported (seen), who (by) and how long ago (ago).
holds_mergesYesWhether the Review policy check fails until the review it asks for is in.
policy_labelNoThe policy as the settings page names it.
sensitive_pathsYesPaths that need a person under risk_based, whatever their size.
careful_approvalsYesHow many people must approve a change in sensitive_paths or over the size standard under risk_based: 1 or 2.
director_approvesYesWhether 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_readyYesWhether 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / director_approves
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "team",
      -  "holds_merges",
      -  "merges_when_ready",
      -  "sensitive_paths",
      -  "careful_approvals",
      -  "policies",
      -  "ai_review"
      -]New value: +[
      +  "team",
      +  "holds_merges",
      +  "merges_when_ready",
      +  "director_approves",
      +  "sensitive_paths",
      +  "careful_approvals",
      +  "policies",
      +  "ai_review"
      +]
  2. Changed3 schema fields changed
    • addedOutput schema / properties / careful_approvals
      Added value: +{
      +  "description": "How many people must approve a change in sensitive_paths or over the size standard under risk_based: 1 or 2.",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / sensitive_paths / description
      Previous value: -"Paths that need a careful review under risk_based."New value: +"Paths that need a person under risk_based, whatever their size."
    • changedOutput schema / required
      Previous value: -[
      -  "team",
      -  "holds_merges",
      -  "merges_when_ready",
      -  "sensitive_paths",
      -  "policies",
      -  "ai_review"
      -]New value: +[
      +  "team",
      +  "holds_merges",
      +  "merges_when_ready",
      +  "sensitive_paths",
      +  "careful_approvals",
      +  "policies",
      +  "ai_review"
      +]
  3. Changed3 schema fields changed
    • changedOutput schema / properties / policy / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / policy_label / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / setup / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / properties / merges_when_ready
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "team",
      -  "holds_merges",
      -  "sensitive_paths",
      -  "policies",
      -  "ai_review"
      -]New value: +[
      +  "team",
      +  "holds_merges",
      +  "merges_when_ready",
      +  "sensitive_paths",
      +  "policies",
      +  "ai_review"
      +]
  5. Added

TDQS

A4.1/5.0
Behavior4/5

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

With readOnlyHint and idempotentHint already declared, the description adds real interpretive context: the returned policy state can include an AI review that has not reported yet, along with the workflow file and steps needed to fix that. It does not state any auth or permission requirements, but for a read-only policy lookup that is a minor gap.

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

Conciseness3/5

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

The opening sentence is a long comma-spliced inventory of returned fields that largely restates what the output schema already provides, so it delays rather than front-loads the core action. The usage and routing sentences are well targeted, but trimming the payload list would make the definition sharper.

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

Completeness5/5

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

For a single-parameter, read-only tool with full schema coverage, output schema, and annotations, the gaps are minimal. The definition covers what is returned, when to call it, the alternative to use before mutation, and the next step when the policy is not yet fully in effect.

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?

Coverage is 100% and the only parameter already documents "owner/name" plus its team-binding purpose. The description reinforces that `repository` determines where the AI review workflow must live, but it adds no syntax or fallback detail beyond the schema, so the baseline of 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 the resource and scope precisely ("the team's review policy") and enumerates what the policy covers: which policy is set, merge-hold behavior, agent auto-merge, sensitive paths, approval thresholds, and AI review status. That is specific enough to distinguish it from per-PR siblings like get-pull-request-review-tool, but the description never explicitly contrasts the two.

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

Usage Guidelines5/5

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

It states exactly when to call it ("when someone asks how their pull requests are reviewed") and a concrete precursor use ("before changing that with set-review-policy-tool, so you can explain the choices in their words"). It also handles a follow-on scenario: if the policy depends on an AI review that has not reported yet, it points to `setup` and `set-up-ai-review-tool`, so the agent knows where to go next.

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