Skip to main content
Glama

Delete PR Comment

bitbucket_delete_pull_request_comment
Destructive

Delete a comment from a Bitbucket pull request. Requires the comment's current version number; only the author or an admin can perform deletion.

Instructions

Delete a comment from a pull request.

Requires the current comment version number for optimistic locking. Only the comment author or an admin can delete a comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
versionYesCurrent version of the comment (for optimistic locking — get from bitbucket_get_pull_request_comments)
comment_idYesThe comment ID to delete
project_keyYesThe project key
pull_request_idYesThe pull request ID number
repository_slugYesThe repository slug

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Discloses optimistic locking requirement and permission constraints beyond annotations. Consistent with destructiveHint=true.

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?

Three concise sentences that are front-loaded with purpose, then requirements, then permissions. No unnecessary words.

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?

Covers purpose, requirements, and permissions. With output schema present, no need to describe return values. Completeness is high.

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% with good parameter descriptions. The description adds context about the version parameter for optimistic locking, enhancing understanding.

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 'Delete a comment from a pull request', which is a specific verb and resource. It distinguishes from sibling tools like post and update.

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?

Mentions the need for the current comment version for optimistic locking and that only the author or admin can delete. Provides implicit guidance to get version from bitbucket_get_pull_request_comments.

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

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