Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

addPRComment

Add general or inline comments to Bitbucket Data Center pull requests with replies, severity tasks, and file/line anchors to keep code review discussions contextual.

Instructions

Add a general or inline PR comment (buffered while this session has a review open).

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>",
      "prId": "<prId>",
      "text": "<text>"
    },
    "name": "addPRComment"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYes
textYes
parentIdNoReply to this comment
repoSlugYes
severityNoBLOCKER = task
anchorLineNoInline: line
anchorPathNoInline: file path
projectKeyNo
anchorFileTypeNoFROM=old, TO=new file
anchorLineTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose one genuinely non-obvious trait — that comments are buffered while a review is open in the session — but omits what an agent critically needs: when the buffer is flushed or discarded, what happens if no review is open, and whether this posts immediately. The buffering disclosure is valuable but incomplete on its own.

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?

A single front-loaded sentence with the action first and the buffering caveat in parentheses — no wasted words. The parenthetical is slightly cryptic, but the structure is efficient and readable.

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 10-parameter mutation tool with zero annotations, 50% schema coverage, and no output schema, one sentence is thin. An agent cannot tell from this description how buffering interacts with finishReview or discardReview, whether the call fails or silently buffers, or which parameter combinations form a valid inline comment.

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 coverage is 50%, and the description adds mode-level meaning by implying inline comments require the anchor fields while general comments do not. However, it says nothing about severity (BLOCKER = task), parentId replies, projectKey, or the FROM/TO and ADDED/REMOVED/CONTEXT combinations, leaving half the parameters to bare inline schema notes.

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?

States a specific verb+resource (add a PR comment) and distinguishes the two modes it supports: general vs inline. It does not distinguish itself from sibling comment tools like addBlockerComment or updatePRComment, leaving the agent to infer boundaries, but the core action is unambiguous.

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 description implies when the inline mode applies through the existence of anchor parameters but never says when to choose general vs inline, when to use this versus addBlockerComment or updatePRComment, or what prerequisites exist. Usage must be inferred from the schema field names rather than stated.

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