Skip to main content
Glama

Update PR Comment

bitbucket_update_pull_request_comment
Destructive

Update an existing pull request comment by providing its current version for optimistic locking. Accepts new Markdown text.

Instructions

Update an existing comment on a pull request.

Requires the current comment version number for optimistic locking.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds the critical behavioral constraint of optimistic locking via version, which is beyond what annotations provide. No contradictions.

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 concise sentences: the first states the core purpose, the second adds an essential requirement. Every word earns its place; no redundancy.

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?

Given the presence of an output schema, return values are covered. The description explains the locking requirement but does not explicitly state that the update is a full replacement (all required params). However, the schema implies that. Overall, sufficient for effective use.

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?

With 100% schema coverage, the baseline is 3. The description adds value by explaining the version parameter's purpose (optimistic locking) and noting that text supports Markdown, which is extra context beyond the schema's descriptions.

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 'Update an existing comment on a pull request' clearly identifies the action, resource, and distinguishes from sibling tools like post (create) and delete. The version requirement further differentiates it.

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?

The description explicitly states the need for the current comment version, implying a prerequisite call to get_comments. However, it does not explicitly state when not to use (e.g., for creating or deleting) nor name alternatives, though siblings are clear from context.

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