Skip to main content
Glama
aashari

Atlassian Bitbucket MCP Server

by aashari

bb_add_pr_comment

Add a comment to a Bitbucket pull request using Markdown. Specify repository, PR ID, and content. Optionally include inline comments with file path and line number or reply to an existing comment using parent ID.

Instructions

Adds a comment to a specific pull request identified by prId within a repository (repoSlug). If workspaceSlug is not provided, the system will use your default workspace. The content parameter accepts Markdown-formatted text for the comment body. To reply to an existing comment, provide its ID in the parentId parameter. For inline code comments, provide both inline.path (file path) and inline.line (line number). Returns a success message as formatted Markdown. Requires Bitbucket credentials with write permissions to be configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe content of the comment to add to the pull request in Markdown format. Bitbucket Cloud natively accepts Markdown - supports headings, lists, code blocks, links, and other standard Markdown syntax.
inlineNoOptional inline location for the comment. If provided, this will create a comment on a specific line in a file.
parentIdNoThe ID of the parent comment to reply to. If not provided, the comment will be a top-level comment.
prIdYesNumeric ID of the pull request to add a comment to as a string. Must be a valid pull request ID in the specified repository. Example: "42"
repoSlugYesRepository slug containing the pull request. This must be a valid repository in the specified workspace. Example: "project-api"
workspaceSlugNoWorkspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam"
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the mutation nature ('Adds'), authentication requirements ('Requires Bitbucket credentials with write permissions'), default behavior ('If workspaceSlug is not provided, the system will use your default workspace'), and output format ('Returns a success message as formatted Markdown'). It doesn't mention rate limits or error conditions, but covers the essential behavioral traits well.

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?

The description is efficiently structured with zero wasted sentences. It starts with the core purpose, then explains parameter usage scenarios, and ends with authentication requirements. Every sentence provides essential information that helps the agent understand how to use the tool correctly.

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 mutation tool with no annotations and no output schema, the description does an excellent job covering the essential context: purpose, parameter usage, authentication needs, and output format. The main gap is the lack of explicit sibling tool differentiation, but given the comprehensive parameter explanations and behavioral transparency, it's nearly complete for this complexity level.

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 the schema already documents all parameters thoroughly. The description adds some contextual meaning about parameter relationships (e.g., parentId for replying, inline for code comments) and the workspaceSlug default behavior, but doesn't provide significant additional semantics beyond what's in the schema. This meets the baseline expectation when schema coverage is complete.

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 clearly states the specific action ('Adds a comment'), target resource ('to a specific pull request'), and distinguishes it from sibling tools like bb_ls_pr_comments (which lists comments) and bb_update_pr (which modifies the PR itself). It's precise about what this tool does versus other PR-related tools.

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?

The description provides clear context about when to use certain parameters (e.g., 'To reply to an existing comment, provide its ID in the parentId parameter' and 'For inline code comments, provide both inline.path and inline.line'), but doesn't explicitly contrast when to use this tool versus alternatives like bb_update_pr for general PR modifications or bb_ls_pr_comments for viewing comments. It gives good parameter-specific guidance but lacks sibling tool comparison.

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

Related 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/aashari/mcp-server-atlassian-bitbucket'

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