Skip to main content
Glama

Set review policy

set-review-policy-tool
DestructiveIdempotent

Choose how much review this team's pull requests need. Once a policy is on, Coderbuds decides a tier for every pull request it sees opened or pushed to — no review, an AI review, one review, or a careful review — and says which, and why, on its pull request comment. Nothing is enforced on GitHub.

policy is one of:

  • skip_trivial — docs-only and tests-only changes skip review; every other change gets one.

  • risk_based — trivial changes skip review, small code changes need only an AI review, and changes to sensitive_paths or over the team's size standard need a careful review.

  • off — no policy; Coderbuds says nothing about review.

Under every policy, a person always reads changes to CI, CODEOWNERS, dependency manifests and lockfiles, built bundles and agent instructions, a newcomer's first change, and an agent's change nobody has read.

sensitive_paths are folders (app/Billing/) or patterns where * reaches into subfolders (database/migrations/*). Omit them to keep the team's current list; pass an empty list to clear it.

Only call this when a person on the team has asked for it, and set what they said. Only the team owner can change it.

Input Schema

NameRequiredDescriptionDefault
policyYesThe policy the team asked for, or off.
repositoryNoOptional "owner/name" repository slug, used only to bind the session to the owning team.
sensitive_pathsNoPaths that need a careful review under risk_based. Omit to keep the current list; an empty list clears it.

Output Schema

NameRequiredDescriptionDefault
teamYesTeam name.
policyNoThe policy now in force, or null when it is off.
messageYesHuman-readable confirmation.
previous_policyNoThe policy before this call, or null when there was none.
sensitive_pathsYesThe sensitive paths now in force.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare idempotent and destructive, and the description adds context the annotations cannot: nothing is enforced on GitHub, the agent always reviews a fixed set of high-risk change categories regardless of policy, and omitting vs passing an empty sensitive_paths list keeps vs clears existing config. That last point directly accounts for the destructive hint and is not a contradiction.

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?

The core action and constraints are front-loaded and the enum definitions are cleanly bulleted, so it is easy to scan. It is on the long side, with the always-review paragraph arguably more than the agent strictly needs to invoke the tool, which keeps it from a 5.

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?

Given three parameters, an output schema, and destructive/idempotent annotations, the description covers everything an agent needs: what the policy causes, who may change it, how to preserve vs reset sensitive paths, and the enforcement boundary. No meaningful gap remains.

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

Parameters5/5

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

Schema coverage is already 100%, but the description goes well beyond it by defining the runtime meaning of each policy enum value and by explaining sensitive_paths syntax (folder form, `*` wildcard reaching into subfolders, omit-to-keep vs empty-to-clear). The schema only says 'The policy the team asked for, or off.'

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 opening sentence gives a specific verb and resource — choosing how much review the team's PRs need — and the body spells out the resulting behavior (Coderbuds assigns a tier and comments why). It does not explicitly contrast itself with adjacent configuration siblings like set-change-fit-standard-tool or set-agent-posture-tool, so it stops short of full sibling differentiation.

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 clearly when to call ('Only call this when a person on the team has asked for it, and set what they said') and includes a hard prerequisite ('Only the team owner can change it'). The per-policy breakdown of skip_trivial vs risk_based vs off effectively tells the agent which value to select under which conditions.

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