Skip to main content
Glama
garc33

Bitbucket Server MCP

by garc33

update_pull_request

Update an existing pull request title, description, or reviewers. Safely preserves all fields not explicitly changed (uses read-modify-write to avoid losing reviewers or other metadata).

Instructions

Update an existing pull request title, description, or reviewers. Safely preserves all fields not explicitly changed (uses read-modify-write to avoid losing reviewers or other metadata).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prIdYesPull request ID to update.
titleNoNew title for the pull request.
projectNoBitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable.
reviewersNoReplace the reviewers list with these usernames. If omitted, existing reviewers are preserved.
repositoryYesRepository slug containing the pull request.
descriptionNoNew description for the pull request. Supports Markdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden, and it delivers the key trait: read-modify-write semantics that preserve fields not explicitly changed, avoiding loss of reviewers or metadata. It does not cover permissions/auth requirements or error behavior, which keeps it short of a 5.

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 tight sentences, front-loaded with the action and scope, followed by the safety behavior. No filler or repetition.

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 6-parameter mutation tool with no annotations and no output schema, the description covers the mutation scope and the preservation guarantee well. Remaining gaps are auth requirements and failure behavior, which are minor relative to the core semantics it does provide.

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 description coverage is 100%, so every parameter is already documented in the schema, including omission semantics for reviewers. The description only restates the mutable field set, adding no syntax or format detail beyond schema, so the baseline of 3 applies.

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?

States a specific verb (update) and resource (existing pull request) and enumerates the mutable fields (title, description, reviewers). An agent can distinguish this from create_pull_request, merge_pull_request, or decline_pull_request purely from the description.

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?

Usage is implied by 'Update an existing pull request', but there is no explicit when-to-use guidance, no distinction from state-changing siblings like merge/decline/approve, and no stated prerequisites. Adequate but leaves the agent to infer context.

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