Skip to main content
Glama

Post PR Comment

bitbucket_post_pull_request_comment
Destructive

Post general, reply, or inline code comments on pull requests. Supports Markdown and specifying file path and line number.

Instructions

Post a comment on a pull request.

Can post general comments, reply to existing comments, or add inline code comments at a specific file and line.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineNoLine number for inline comment
textYesThe comment text (supports Markdown)
file_pathNoFile path for inline comment
line_typeNoADDED, REMOVED, or CONTEXT for inline comments
parent_idNoParent comment ID to reply to
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 denote destructive write (destructiveHint=true). The description adds that comments can be inline and supports Markdown, providing useful context beyond annotations. 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?

Extremely concise: two sentences, front-loaded purpose, no wasted words. Each sentence adds value.

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?

For a tool with 8 parameters and multiple comment types, the description covers all major use cases. The presence of an output schema reduces the burden. Missing details about permissions or limits, but adequate for typical agent use.

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 baseline 3 applies. The description adds minimal parameter insight beyond what the schema provides (e.g., 'supports Markdown' is in schema). It does not elaborate on parameter semantics meaningfully.

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 the tool posts a comment on a pull request and lists three distinct modes: general, reply, inline. This specificity distinguishes it from sibling tools like delete or get comments.

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 explains when to use each mode (general, reply, inline) by referencing parameters like parent_id, file_path, line. However, it does not explicitly guide when not to use this tool or compare with alternatives like update, but the context is clear enough.

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