Skip to main content
Glama
jabdon00

bitbucket-standalone-mcp

by jabdon00

bb_create_pull_request_comment

Add comments to Bitbucket pull requests, including inline code line comments, structured review findings, and replies to existing comments.

Instructions

Add a comment on a PR. Inline code comments need 'anchoredTo' (file path + line number + lineType). Plain text goes in 'text'. Returns the created comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineNoREQUIRED for inline comments. Exact 1-based line number of the changed line in the SOURCE branch file. Equivalently, count from the @@ hunk header's +c value through context and + lines (skip - lines). This is the number of the line in the source branch, not the target branch.
prIdYes
textYesComment body (supports inline markup). LEGACY: when no structured finding fields are supplied, this raw body is STRICTLY validated against the Review Note contract and REFUSED if it does not match (free-form finding text is never posted as-is).
anchorIdNoAnchor id (returned from the comment on inline create); required to reply to an existing comment
diffTypeNoAnchor diffType — defaults to 'EFFECTIVE' (PR-level diff). Use 'COMMIT' if you're anchoring to a specific commit's diff.
fileTypeNoAnchor side — defaults to 'TO' (the destination file version). Use 'FROM' when anchoring to a line that was removed.
lineTypeNoSide of the diff (ADDED/CONTEXT/BEFORE vs REMOVED/AFTER) — for inline comments
repoSlugYes
anchorTypeNoDefault LINE. Only use FILE when you intentionally want a file-level comment (no line). Prefer LINE.
projectKeyYes
reviewRuleIdNoStructured finding rule ID, e.g. 'AS-09'. Rendered as '#AS-09' by the formatter (never '[AS-09]').
reviewSummaryNoStructured one-line summary of the finding (<=15 words).
anchoredToFileNoRelative file path for an inline comment, e.g. 'src/foo.ts'
reviewSeverityNoStructured finding severity: CRITICAL | WARNING | SUGGESTION. Only CRITICAL/WARNING are posted by the review policy.
parentCommentIdNoReplying to an existing comment? Pass that comment id here; 'anchoredTo' fields are then ignored.
reviewWhatIsWrongNoStructured 'What is wrong' clause - the defect as the code currently is, with file:line evidence.
reviewWhyItMattersNoStructured 'Why it matters' clause - the user-visible consequence.
reviewSuggestedChangeNoStructured 'Suggested change' clause - one concrete fix, or 'n/a'.
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 it reveals only the return value and the inline/plain distinction. It does not disclose side effects, strict legacy validation of 'text', review-policy filtering of severity, or behavior when replying via parentCommentId—critical traits for a mutation tool.

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?

The description is three short sentences with the main purpose front-loaded and no filler. It loses a point because the inline-citation sentence introduces an inaccurate parameter name, which makes the concise phrasing less reliable.

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?

This is an 18-parameter mutation tool with no annotations and no output schema, yet the description only covers basic inline vs text comments. It omits the structured-finding variant, reply flow, anchor diff/file/type options, and the strict validation on free-form text, so an agent cannot confidently invoke all supported behaviors from this description alone.

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 83%, so the schema does most of the parameter documentation; the description adds useful grouping (inline vs plain text) but refers to a non-existent property, 'anchoredTo', where the schema actually defines 'anchoredToFile'. That naming mismatch offsets the added value, keeping this at the baseline.

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 opens with a specific verb+resource, 'Add a comment on a PR,' which unambiguously identifies the create operation and distinguishes it from sibling update/delete/list/resolve comment tools. The closing 'Returns the created comment' confirms the operation's purpose and expected result.

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

Usage Guidelines4/5

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

It gives clear usage context by separating the two main modes: inline comments require an anchor (file path + line + lineType) while plain text goes in 'text'. It does not explicitly name alternatives or say when-not-to-use, but 'Add' is sufficiently distinct from the update/delete/approve siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jabdon00/bitbucket-standalone-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server