Skip to main content
Glama

pg_review

Render an interactive line-level code review workbench, export blind-review diff bundles for cloud review, and resolve must-fix comments with notes.

Instructions

Manage interactive line-level code review workbench (REVIEW_DIFF.html), cloud blind-review DIFF_BUNDLE.md, or resolve must_fix comments.

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": {
      "op": "<op>"
    },
    "name": "pg_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
noteNoResolution note when op='resolve'.
slotNoWorkspace slot name (optional if only one slot is open or `--slot` default is set).
comment_idsNoComment IDs to mark resolved (or 'all') when op='resolve'.
include_worktreeNoInclude uncommitted edits when rendering diff (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

C2.5/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 and discloses almost nothing: no indication that render/export_bundle write files (and where), whether resolve is reversible, whether comment state changes are persisted, or what prerequisites (open slot, git state) apply. The single behavioral hint is that `include_worktree` defaults to true, which comes from the schema, not the prose.

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?

It is a single dense sentence with no wasted words, so it is concise. However, it is a run-on 'A, B, or C' list of artifacts rather than a front-loaded statement of what the tool does, which makes it harder to parse than a shorter purpose sentence followed by mode explanation.

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?

This is a three-mode, five-parameter, mutating tool with no annotations and no output schema, so the description should explain each mode's effect and outputs. Instead it names artifacts and stops, leaving an agent unable to predict side effects or return values for render, export_bundle, or resolve.

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 80%, so the schema already documents slot, comment_ids, note, and include_worktree. The description adds no parameter meaning beyond restating the three mode names, which are already enumerated in the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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

Purpose3/5

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

The description names three concrete artifacts (REVIEW_DIFF.html workbench, DIFF_BUNDLE.md cloud bundle, must_fix comment resolution), which gives a usable picture of scope. But the verb is the generic 'Manage' and the three modes are not mapped to the `op` values, so an agent must infer that render/export_bundle/resolve correspond to those three artifacts. It also does not distinguish itself from the sibling pg_blind_review.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance. A sibling named pg_blind_review clearly relates to the 'cloud blind-review' artifact mentioned here, yet the description gives no rule for choosing between them. The only implied guidance is that 'resolve' applies to must_fix comments.

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