Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_add_pull_request_file_line_comment

Adds a comment to a Bitbucket pull request, including optional inline comments anchored to a specific file and line.

Instructions

Adds a comment to a Bitbucket pull request, optionally as an inline comment on a specific file and line.

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": {
      "workspaceSlug": "<workspaceSlug>",
      "repoSlug": "<repoSlug>",
      "prId": "<prId>",
      "content": "<content>"
    },
    "name": "bitbucket_add_pull_request_file_line_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesNumeric ID of the pull request.
inlineNoOptional details for an inline comment on a specific line in a file.
contentYesThe text content of the comment.
parentIdNoOptional ID of the parent comment if this is a reply.
repoSlugYesSlug of the gateway.
workspaceSlugYesSlug of the workspace/project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it does not disclose that this is a write operation with side effects, whether notifications are sent, what permissions are needed, or how invalid file/line anchors behave. It also says nothing about the reply-threading path via parentId.

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 no wasted wording. Its brevity is efficient, though the trailing 'optionally as an inline comment' clause is the least precise part and is placed where it is hardest to parse.

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 mutation tool with a required nested inline object, no annotations, and no output schema, the description is too thin: it does not cover reply behavior, required permissions, side effects, or what is returned after the comment is created.

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 explains path, line, fileType, lineType, content, and parentId. The description only restates that the inline object is optional and anchors to a file and line, adding no syntax or format detail beyond the schema; baseline 3 applies.

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 names a specific verb (adds) and resource (comment on a Bitbucket pull request) plus the distinguishing capability of attaching it to a file and line. However, the word 'optionally' blurs the boundary with the sibling bitbucket_add_pull_request_comment, which is never named or contrasted.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool rather than the plain PR-comment sibling, and no exclusion of cases (e.g., non-inline comments, replies). The only hint is the word 'optionally', which leaves the choice entirely to inference.

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