Skip to main content
Glama
N0moreher0
by N0moreher0

Reopen pull request

project_pr_reopen
Idempotent

Reopen a GitHub or GitLab pull/merge request that was closed by mistake so the same branch can be reviewed again.

Instructions

Reopen a closed pull/merge request (GitHub, GitLab). Bitbucket returns unsupported. Use when: a PR was closed by mistake and the same branch should be reviewed again. Avoid when: the branch was deleted or force-pushed away (open a new PR with project_pr_create). Speed: one API call; idempotent. Output: pr_reopen: repo, provider, pr, state, reopened, url. Batch-safe: no

Input Schema

NameRequiredDescriptionDefault
prYesPR number or PR URL.
repoNoRepository as "owner/name" or a PR URL (default: VENIRA_GIT_REPO, git.repo in venira.config.json, else the workspace .git origin remote).
reasonNoWhy this change is made (e.g. "sua loi null pointer o dong 45"). Recorded in the audit trail so later sessions know the intent. Single line, max 400 chars, secrets are redacted.
providerNoProvider override for this call (default: VENIRA_GIT_PROVIDER, then venira.config.json, then inferred from the origin remote).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.4

TDQS

A4.5/5.0
Behavior4/5

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

Adds real context beyond the annotations: the provider support matrix (Bitbucket unsupported), single-call speed, and the output field list including a `reopened` flag. 'Idempotent' merely restates idempotentHint=true, and auth/permission requirements are not mentioned, so it falls just short of a 5.

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?

Layered, front-loaded structure: action, usage, anti-usage, cost, return shape, batching. Each line carries distinct information with no filler.

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?

With no output schema present, the description compensates by enumerating the returned fields (repo, provider, pr, state, reopened, url). Combined with provider caveats and the misuse case, an agent has everything needed to invoke it correctly.

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% and each parameter (pr, repo, reason, provider) is already documented in the schema with defaults and formats. The description adds no parameter-level detail beyond the provider note, so the baseline 3 applies.

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 (reopen a closed pull/merge request) and immediately scopes provider support (GitHub, GitLab) with a documented carve-out (Bitbucket returns unsupported). An agent can distinguish this from project_pr_create and other PR siblings without opening a 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?

Explicit 'Use when' (PR closed by mistake, same branch should be reviewed again) and 'Avoid when' (branch deleted or force-pushed) with a named alternative (project_pr_create). The selection rule is fully specified.

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