Skip to main content
Glama
N0moreher0
by N0moreher0

Close pull request

project_pr_close
DestructiveIdempotent

Close or decline an open pull/merge request without merging it when the change is superseded, opened by mistake, or should be abandoned.

Instructions

Close (decline) an open pull/merge request without merging it. Use when: a PR is superseded, opened by mistake, or the user asked to abandon it. Avoid when: the change should land (use project_pr_merge instead). Speed: one API call; idempotent (closing a closed PR is a no-op). Output: pr_close: repo, provider, pr, state, closed, 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?

The annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true. The description adds useful context beyond that: closing an already-closed PR is a no-op, it is one API call, it is not batch-safe, and it lists the output shape. It does not discuss permissions or reversibility via reopen, which keeps it from being fully exhaustive.

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?

The description is short, front-loaded, and organized into useful labeled lines: purpose, use when, avoid when, speed, output, batch-safe. Every sentence contributes operational information without repetition.

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?

For a 4-parameter mutation tool with no output schema, the description supplies the essential context: purpose, when to use it, the key alternative, idempotency behavior, batch safety, and output fields. Nothing critical for correct invocation is missing.

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 documents pr, repo, reason, and provider. The description does not add syntax or meaning beyond those fields; it mainly describes output keys. With complete schema coverage, the baseline score of 3 is appropriate.

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: close/decline an open pull/merge request without merging it. It explicitly distinguishes the action from merging via project_pr_merge, so an agent can identify the intended operation without inspecting sibling schemas.

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 explicit positive conditions (superseded, opened by mistake, user asked to abandon it) and an explicit negative condition with the alternative (use project_pr_merge when the change should land). This is exactly the routing guidance an agent needs.

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