Skip to main content
Glama
garc33

Bitbucket Server MCP

by garc33

delete_comment

Delete a comment from a pull request. Requires the comment version for optimistic locking.

Instructions

Delete a comment from a pull request. Requires the comment version for optimistic locking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prIdYesPull request ID the comment belongs to.
projectNoBitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable.
versionYesCurrent version of the comment (for optimistic locking). Obtain from get_comments or add_comment response.
commentIdYesID of the comment to delete.
repositoryYesRepository slug containing the pull request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add one real behavioral fact: the operation is guarded by optimistic locking. However, it omits whether deletion is permanent or recoverable, what permissions are required, and what happens on a version mismatch — meaningful gaps for a destructive mutation.

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?

Two short sentences, zero filler, and the effect (delete a comment) is front-loaded ahead of the precondition. Nothing requires trimming.

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

Completeness3/5

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

For a 5-parameter destructive tool with no annotations and no output schema, the description covers purpose and the locking precondition but leaves the failure mode (version conflict), permission requirements, and endpoint/project resolution unaddressed. The schema fills in parameter details, so it is adequate but not complete.

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 coverage is 100%, so every parameter is already documented, including version's 'Obtain from get_comments or add_comment response' guidance. The description's optimistic-locking note largely restates the schema's version field description, adding no syntax or format detail beyond it. 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?

States a specific verb and resource: 'Delete a comment from a pull request.' That is unambiguous against siblings like add_comment and edit_comment, which differ by verb. It stops short of explicitly naming the alternative to use when a comment should be modified rather than removed, so it is clear but not sibling-differentiating in text.

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 gives a prerequisite ('Requires the comment version for optimistic locking') but no explicit when-to-use guidance or named alternatives (e.g. use edit_comment to modify instead). Usage is implied by the verb rather than stated.

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