Skip to main content
Glama

bitbucket_add_pull_request_inline_comment

Adds an inline comment to a specific line of a file in a Bitbucket pull request, enabling targeted code review feedback.

Instructions

Add an inline comment on a specific line of a file in a pull request.

Args: workspace: Workspace name or project key. repository: Repository name. pull_request_id: Pull request ID. comment: Comment text. file_path: Path to the file to comment on. line: Line number to attach the comment to. line_type: Line type for Server/DC ('ADDED', 'REMOVED', or 'CONTEXT').

Returns: JSON string containing the created comment details.

Raises: ValueError: If the Bitbucket client is not configured or available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesLine number in the file to attach the comment to
commentYesComment text
file_pathYesPath to the file being commented on (e.g. 'src/main.py')
line_typeNoType of the line being commented on. Only used for Bitbucket Server/DC. 'ADDED' for new lines, 'REMOVED' for deleted lines, 'CONTEXT' for unchanged lines.ADDED
workspaceYesWorkspace name (Cloud) or project key (Server/DC)
repositoryYesRepository name
pull_request_idYesPull request ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses behavior: creates an inline comment, returns JSON details, and raises ValueError if client not configured. It does not mention permissions or rate limits, but for a creation tool this is adequate.

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 well-structured with Args, Returns, and Raises sections. It is slightly verbose but every sentence adds value. Could be more concise, but it's acceptable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema (not shown but indicated), the description adequately explains the return value as a JSON string. It covers all necessary aspects for a create tool with no missing context.

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?

Schema coverage is 100%, baseline 3. The description adds value by clarifying that 'line_type' is only used for Server/DC, and provides concise context for each parameter beyond the schema's descriptions.

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 action: 'Add an inline comment on a specific line of a file in a pull request.' It uses specific verb and resource, and distinguishes from sibling tools like 'blocker comment' or general comment.

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 does not provide explicit guidance on when to use this tool versus alternatives like blocker comment or general comment. Usage is implied but not clarified with exclusions.

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/SharkyND/mcp-atlassian'

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