Skip to main content
Glama
pdogra1299
by pdogra1299

decline_pull_request

Decline a Bitbucket pull request, optionally adding a comment, and pass version to save a fetch or prevent overwriting concurrent changes.

Instructions

Decline a pull request, optionally with a comment. Pass version to save a fetch (Server).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentNoReason for declining
versionNoEntity version from a prior read; supplying it saves a fetch AND makes the write conditional — it fails on concurrent modification instead of overwriting. Omit to write against the latest state (auto-retried once).
workspaceYesProject key (e.g., PROJ)
repositoryYesRepository slug
pull_request_idYesPull request ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but says nothing about the consequences of declining (state transition, reversibility, notifications) or auth requirements. The version note hints at server-side concurrency handling, but that nuance is already elaborated in the schema, not the description.

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?

Two short sentences with the core action front-loaded and no filler. The parenthetical '(Server)' is slightly cryptic, but overall it is efficiently sized for the tool's scope.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the description is too thin: it omits what declining actually does, whether it is reversible, and any permission or state preconditions. The rich schema compensates on parameters, but the behavioral picture remains incomplete.

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 both the comment and version semantics are already fully documented in the schema. The description adds no meaning beyond it, and 100% coverage establishes the baseline of 3.

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

Purpose4/5

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

Names a specific verb (decline) and resource (pull request), plus the optional comment capability. It is distinguishable from merge_pull_request or set_review_status, though it does not explicitly contrast itself with those siblings.

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

Usage Guidelines2/5

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

There is no guidance on when to decline versus merge, close, or update a PR, and no stated prerequisites (e.g., PR must be open, required permissions). The only hint at usage is the passing mention of the optional comment.

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