Skip to main content
Glama

get_comments

Retrieve comments from a Bitbucket pull request to review feedback and discussion tied to a specific repository and PR ID.

Instructions

Retrieve only the comments from a pull request.

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": {
      "repository": "<repository>",
      "prId": "<prId>"
    },
    "name": "get_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesPull request ID to get comments for.
projectNoBitbucket project key (optional if default project configured).
repositoryYesRepository slug containing the pull request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Since no annotations are provided, the description is the sole source of behavioral context. As a simple read operation, it is straightforward. However, it provides little depth regarding rate limits, latency, or if the retrieved comments are filtered/paginated.

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 definition is perfectly concise and structured, stating the tool's purpose in a single, highly effective sentence. There is zero wasted language.

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?

The tool definition is largely complete given its simple structure (GET operation). While it doesn't specify if it retrieves *all* comments or a limited set, the core function and required inputs are fully covered.

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?

With schema description coverage at 100%, the schema adequately defines the meaning of the required 'repository' and 'prId' parameters. The description provides minimal added semantic value beyond confirming the operational context.

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 is highly specific, using the verb 'Retrieve' and the resource 'comments' within a 'pull request.' This clearly defines the scope of the function and distinguishes it from other potential data retrieval tools in the sibling list.

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?

By limiting the retrieval specifically to 'only the comments,' the description provides strong guidance on when to use this tool versus a more comprehensive tool like 'get_pull_request.' However, it does not explicitly state when NOT to use it.

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