Skip to main content
Glama

Publish a review to GitHub

publish_review

Publishes a completed local review to its GitHub pull request, attaching the verdict and every inline comment to the correct file and line. Use it after finishing a mode=pr review.

Instructions

Publishes a review that was written locally back to its GitHub pull request as a real PR review: the verdict (Approver / Request changes / Comment) plus every inline comment, attached to its file and line. Use it after the user finishes a review of mode=pr. Needs gh to be installed and authenticated.

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": {
      "reviewId": "<reviewId>"
    },
    "name": "publish_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
reviewIdYesIdentifier returned by start_review for a mode=pr review.
reviewBodyNoOverall review text. Defaults to the one saved with the review.
reviewStateNoVerdict to publish. Defaults to the verdict the user chose on the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose key behavior: it mutates an external system (a real PR review on GitHub), attaches inline comments to file/line, and requires `gh` to be installed and authenticated. However, it omits idempotency (can the same review be published twice?), what the local review state becomes afterward, and how failures surface — significant gaps for an external write operation.

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

Conciseness5/5

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

Two sentences, front-loaded with what gets published and its constituent parts, then the usage condition and the environment prerequisite. Every clause carries information; nothing is redundant.

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

Completeness4/5

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

For a three-parameter mutation tool with no output schema and no annotations, the description covers the action's scope, the trigger condition, and the `gh` auth prerequisite, which is what an agent needs to call it correctly. The remaining gap is the return value and repeat-publish behavior, minor since no output schema is promised.

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 defines reviewId, reviewBody, and the reviewState enum with its defaults; the baseline is 3. The description adds context by mapping verdicts to Approver / Request changes / Comment and noting that inline comments travel with the publish, but it does not add syntax or constraints beyond the schema.

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

Purpose5/5

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

States a specific verb (publishes) and resource (a locally written review) and clarifies exactly what is sent: the verdict plus every inline comment attached to its file and line. That specificity distinguishes it from siblings like start_review, get_review, or close_review without needing to name them.

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

Usage Guidelines4/5

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

Gives an explicit precondition: 'Use it after the user finishes a review of mode=pr.' That is clear sequencing guidance. It stops short of saying when not to use it (e.g., resuming or editing an already-published review), but for a publish step the trigger condition is unambiguous.

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