Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

discardPendingReview

Permanently deletes the current user's pending draft comments on a pull request, clearing a review in progress. Use it to cancel unwanted feedback before submitting a review.

Instructions

Discard the current user's pending review on a pull request. All pending (draft) comments are permanently deleted. Data Center only.

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": {
      "repoSlug": "<repoSlug>",
      "pullRequestId": "<pullRequestId>"
    },
    "name": "discardPendingReview"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoSlugYesRepository slug
workspaceNoBitbucket workspace or project key (uses default if omitted)
pullRequestIdYesPull request ID

Output Schema

NameRequiredDescriptionDefault
resultYesTool-specific result payload
statusYesWhether the tool call succeeded
messageYesHuman-readable status message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries the destructive payload and does so well: it discloses that all pending draft comments are permanently deleted, that scope is limited to the current user, and that it is Data Center only. It stops short of saying what happens when no pending review exists (error vs. no-op) or what the response contains.

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?

Three short sentences, each earning its place: the action, the destructive consequence, and the platform restriction — ordered with the most important information first.

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 a destructive mutation, the definition covers scope, irreversibility, and platform availability, and an output schema exists to describe return values. The only real gap is undefined behavior when there is no pending review to discard.

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 repoSlug, workspace, and pullRequestId are already documented. The phrase 'current user's' implicitly clarifies why no user parameter exists, but no additional parameter meaning is added beyond the schema.

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 ('Discard') and resource ('the current user's pending review on a pull request'), and the pairing with 'pending review' cleanly distinguishes it from sibling operations like getPendingReview and submitPendingReview. An agent can tell what it does without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied by the verb — abandon a draft review rather than submitting it — and the 'Data Center only' clause usefully rules out Cloud environments. However, it never explicitly contrasts with submitPendingReview or states whether any precondition (e.g. an existing pending review) is required.

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