Skip to main content
Glama

Open a review of a pushed branch

open_review

Opens a review of a branch the person pushed (with a push code token from create_code_token, or to the workspace's own GitHub), as a pull request does on GitHub: CodeGene opens the branch's review, builds its preview at exactly headSha, and the new task moves to Try it once the preview is ready. A later push to the branch moves the review to the new commit and rebuilds its preview (the task returns to Try it once that preview is ready), as a pull request follows its branch; going live merges the commit the preview shows. A branch alone builds no preview. Needs the branch name and the full commit id it was pushed at (git rev-parse HEAD). Never the branch the project goes live from. In a project of several parts, part names the one the change is about. The same branch and commit answer the same task.

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": {
      "projectId": "<projectId>",
      "branch": "<branch>",
      "headSha": "<headSha>",
      "title": "<title>",
      "reason": "<reason>"
    },
    "name": "open_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoFor a project of several parts (for example its app and its marketing site): the slug of the part the change is about, so its preview opens on that part. Left out, a project with one part uses it, and in a project of several the preview opens on the newest part the branch built. An unknown slug is refused with the slugs the project has.
titleYesWhat the change does, as the task's title.
branchYesThe pushed branch that holds the work.
detailNoMore about the change, kept on the task.
reasonYesWhy, in a sentence: kept in the workspace's activity.
headShaYesThe full 40-character commit id the branch was pushed at.
projectIdYesThe project the work is for.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / detail / maxLength
      Previous value: -4000New value: +32767
    • changedInput schema / properties / title / maxLength
      Previous value: -200New value: +255
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With annotations covering only the safety profile (readOnlyHint=false, destructiveHint=false), the description carries the behavioral payload: preview construction at exactly headSha, the task transitioning to 'Try it', rebuild-on-later-push semantics, what 'going live' merges, and idempotency ('The same branch and commit answer the same task'). This is substantial state-change disclosure an agent could not infer from the annotations or schema.

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?

The purpose is front-loaded and every clause carries information, but the GitHub pull-request analogy is invoked twice in near-identical framing and several sentences are long run-ons that force re-reading. It could shed the repeated comparison and still retain all the behavioral facts.

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 an 8-parameter mutation with no output schema, the description covers lifecycle, side effects, and preconditions well. The remaining gap is the return value: it hints that the same branch and commit 'answer the same task' but never says what the call actually hands back (task id, preview URL), which matters without an output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds practical meaning: headSha is tied to 'git rev-parse HEAD' and 'the full commit id it was pushed at', and 'part names the one the change is about' restates the routing rule in operational terms. It stops short of adding anything new for title, reason, or detail, which the schema already covers.

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 and resource ('opens a review of a branch the person pushed') and pins down the token source ('with a push code token from create_code_token, or to the workspace's own GitHub'), which distinguishes it from the sibling that mints those tokens. An agent can tell what this tool produces and what it does not ('A branch alone builds no preview').

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 clear preconditions and an explicit exclusion ('Needs the branch name and the full commit id it was pushed at', 'Never the branch the project goes live from'), plus guidance for multi-part projects. It doesn't name a competing review-opening tool or say what to do when these preconditions fail, but the when-to-use context is strong.

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