Skip to main content
Glama

Review a pushed branch

review_branch

Review a branch already pushed to GitHub, with no upload: MergeSafe reads the branch's changes from GitHub itself. Returns review_id with status 'fetching' (queued). Poll get_session_findings until this review is 'quoted', then show the user its price as for review_local and ask them to confirm before confirm_review. A branch MergeSafe cannot read is refused with a note, and nothing is charged for it.

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": {
      "repo": "<repo>",
      "session_id": "<session_id>",
      "base": "<base>",
      "head": "<head>"
    },
    "name": "review_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesThe branch the change is against.
headYesThe pushed branch to review.
repoYesThe session's repository, "owner/name".
session_idYesThe session_id start_session returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the description must carry the real behavioral burden, and it does: it discloses that the tool is asynchronous, that the immediate return is a review_id with status 'fetching' (queued), the polling requirement, the confirmation gate, and the no-charge refusal path. It also clarifies that no file upload occurs, preventing a wrong mental model of how the changes are obtained.

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?

It is front-loaded with the core action and the no-upload distinction, then moves to the call sequence and finally the edge case. The middle sentence is dense with chained steps but every clause carries operational information; only minor tightening is possible.

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?

Despite no output schema, the description explains the immediate return value (review_id, status 'fetching') and the terminal state to poll for ('quoted'), plus what to do before confirming. For a multi-step, charge-incurring review workflow this covers everything an agent needs to call it and act correctly afterward.

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%, with all four required parameters documented in the schema itself (repo, session_id, base, head). The description adds no syntax, format, or constraint detail beyond that, so it neither helps nor hurts relative to the schema baseline.

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?

The description states a specific verb and resource ('Review a branch already pushed to GitHub') and immediately clarifies the mechanism ('no upload: MergeSafe reads the branch's changes from GitHub itself'). The phrase 'as for review_local' implicitly contrasts it with the local-upload sibling, so an agent can distinguish the two without opening either schema.

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 gives an explicit post-call sequence: poll get_session_findings until the review is 'quoted', surface the price, and get confirmation before confirm_review. It also names the failure case (a branch MergeSafe cannot read is refused, nothing charged), leaving no ambiguity about when this tool applies or what to do 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.