Skip to main content
Glama

pr_review

Runs staged, keyless pull request reviews from local git diffs, guiding hosts through prepare, validate or repair, and final steps with schema and coverage checks.

Instructions

Run staged keyless PR review. Host must chain prepare -> validate/repair using nextAction.callTemplate.

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": "pr_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoPrepare stage: working directory. Defaults to process.cwd(). Most IDEs inject this automatically.
modelNoValidate stage: optional host model identifier used for draft generation.
branchNoPrepare stage: branch to review. Must be specified explicitly.
formatNoRequested final output format when validation reaches final stage.
sessionIdNoValidate stage: session ID returned by prepare/repair. Required together with draftReport.
draftReportNoValidate stage: draft JSON report from host model (object or JSON string). Required together with sessionId.
reviewInstructionsNoPrepare stage: trusted reviewer focus to include in prompt assembly (max 2000 chars).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses only that the workflow is multi-stage and host-driven; it does not explain what 'keyless' means operationally, what permissions or setup are needed, what each stage mutates or returns, or what happens if the host skips prepare. That is a substantial gap for a 7-parameter tool.

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?

Two short, front-loaded sentences with no wasted wording. The density is undercut slightly by unexplained terms ('keyless', 'nextAction.callTemplate') that make the compactness cryptic rather than efficient.

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

Completeness2/5

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

For a 7-parameter staged workflow with no annotations and no output schema, the description leaves too much unexplained: what each stage does, what the final output is, and what 'nextAction.callTemplate' refers to. The staging hint is useful but insufficient on its own.

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 description coverage is 100%, so the schema already documents all seven parameters and their stage associations. The description adds no parameter-level meaning beyond the schema, 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?

States a specific verb and resource ('Run ... PR review') and adds distinguishing qualifiers ('staged', 'keyless'). The purpose is identifiable, though 'keyless' is undefined jargon and the description never clarifies what a 'staged' review actually produces.

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

Usage Guidelines3/5

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

The second sentence gives sequencing guidance ('Host must chain prepare -> validate/repair'), which implies the required call order. However, it never says when to choose this tool over alternatives, nor what triggers a repair pass versus a validate pass, and 'nextAction.callTemplate' is referenced without explanation.

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

Deploy Server

Other Tools