Skip to main content
Glama
jlromano

Bitbucket MCP Server

by jlromano

add_pull_request_comment

Add comments to Bitbucket pull requests to provide feedback, ask questions, or share information during code review processes.

Instructions

Add a comment to a pull request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pr_idYesThe pull request ID
contentYesThe comment content

Implementation Reference

  • The implementation of the tool logic that interacts with the Bitbucket API.
    async addPullRequestComment(
      workspace: string,
      repoSlug: string,
      prId: number,
      content: string
    ): Promise<void> {
      await this.api.post(`/repositories/${workspace}/${repoSlug}/pullrequests/${prId}/comments`, {
        content: { raw: content }
      });
    }
  • src/index.ts:247-265 (registration)
    The MCP tool registration for 'add_pull_request_comment'.
    {
      name: 'add_pull_request_comment',
      description: 'Add a comment to a pull request',
      inputSchema: {
        type: 'object',
        properties: {
          workspace: {
            type: 'string',
            description: 'The workspace slug',
          },
          repo_slug: {
            type: 'string',
            description: 'The repository slug',
          },
          pr_id: {
            type: 'number',
            description: 'The pull request ID',
          },
          content: {
Behavior2/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 states the action ('Add a comment') but doesn't mention whether this requires authentication, what permissions are needed, if there are rate limits, how errors are handled, or what the response looks like (e.g., success confirmation or comment ID). For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 a single, efficient sentence with zero waste—it directly states the tool's purpose without fluff or repetition. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly.

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?

Given this is a mutation tool (adding a comment) with no annotations and no output schema, the description is incomplete. It doesn't address behavioral aspects like authentication needs, error handling, or response format, which are critical for an agent to invoke it correctly. The 100% schema coverage helps with parameters, but overall context is lacking.

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 all parameters are documented in the schema. The description doesn't add any meaning beyond what the schema provides—it doesn't explain parameter relationships, format examples (e.g., what a 'workspace slug' looks like), or constraints. This meets the baseline of 3 when the schema does the heavy lifting.

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 clearly states the action ('Add a comment') and target resource ('to a pull request'), providing a specific verb+resource combination. However, it doesn't differentiate this tool from potential alternatives or siblings like 'approve_pull_request' or 'merge_pull_request', which also interact with pull requests but perform different operations.

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?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (e.g., needing an existing pull request), exclusions (e.g., not for issues or commits), or comparison with sibling tools like 'create_pull_request' or 'merge_pull_request'. The agent must infer usage from the tool name alone.

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/jlromano/bitbucket-mcp'

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