Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

addPendingReviewComment

Adds draft review comments to Bitbucket pull requests, keeping them hidden from others until the review is submitted; supports general, inline file/line, and threaded reply comments.

Instructions

Add a pending (draft) review comment to a pull request. The comment remains invisible to other users until the review is submitted. Supports general, inline (file/line), and reply comments. 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>",
      "content": "<content>"
    },
    "name": "addPendingReviewComment"
  }
}

Input Schema

NameRequiredDescriptionDefault
inlineNoInline comment position for commenting on specific file lines
contentYesComment content in markdown format
parentIdNoParent comment ID for threaded replies
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

A3.9/5.0
Behavior4/5

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

Beyond the single readOnlyHint=false annotation, the description discloses genuinely valuable behavior: the comment is a draft invisible to other users until the review is submitted, and it is restricted to Data Center. It omits whether a pending review is auto-created if none exists and what permissions are needed, but the mutation semantics are well covered.

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?

Four short sentences, each earning its place: identity, the key behavioral trait, supported modes, and the platform restriction. The most decision-relevant facts (draft status, Data Center only) are front-loaded.

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 mutating tool with an output schema, minimal annotations, and full schema coverage, the description supplies the draft-lifecycle context and platform caveat an agent needs. The only gap is not stating how the pending review is created when one doesn't already exist.

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?

With 100% schema description coverage the baseline is 3, but the description adds real meaning by mapping the three comment modes (general, inline file/line, reply) onto how the optional inline and parentId parameters are used. That clarifies when to supply the nested inline object versus a parentId for threading, which the schema alone does not spell out.

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?

The description uses a specific verb+resource ('Add a pending (draft) review comment to a pull request') and immediately scopes it apart from a normal comment by saying it stays invisible until submission. It does not name the sibling addPullRequestComment directly, so the contrast is inferable rather than explicit, which keeps it just below a 5.

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?

The 'remains invisible to other users until the review is submitted' clause implies this is for drafting review feedback rather than posting immediately, and 'Data Center only' is a useful usage constraint. However there is no explicit when-to-use/when-not guidance naming addPullRequestComment or the lifecycle tools (submitPendingReview, discardPendingReview) that complete this workflow.

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