Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

processMergeQueue

Merges queued pull requests in order, skips non-open ones, and stops at the first PR that cannot be merged.

Instructions

Merge queued PRs in order, skipping non-OPEN ones; stops at the first that cannot merge.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repoSlug": "<repoSlug>"
    },
    "name": "processMergeQueue"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoMerge commit message
repoSlugYes
strategyNo
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose real behavior: processing order, skipping non-OPEN entries, and halting at the first failure (implying earlier merges persist). It does not cover permissions, rate limits, or whether the operation is reversible, which keeps it below 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?

A single front-loaded sentence with zero filler; each clause (order, skip rule, stop condition) carries distinct behavioral information. Nothing repeats the tool name or schema.

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

Completeness2/5

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

For a mutating, multi-PR tool with no annotations, no output schema, and 25% parameter coverage, the definition is too thin: it omits permission/auth needs, what a successful or partial run returns, and the meaning of three of four parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only 'message' is documented), yet the description adds no meaning to repoSlug, projectKey, or the strategy enum. Nothing explains what projectKey scopes or how strategy choice interacts with queue processing, so the low-coverage schema gap is left unaddressed.

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 ('Merge queued PRs') plus scope qualifiers (in order, skipping non-OPEN, fail-fast at first unmergeable). An agent can tell this acts on the queue rather than a single PR, though no sibling is named explicitly to sharpen the contrast with mergePullRequest.

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 queue-processing use case is implied by 'Merge queued PRs in order', and the skip/stop rules narrow the scope, but there is no explicit when-to-use vs mergePullRequest or getMergeQueue guidance and no stated prerequisites (e.g., queue must be non-empty, permission requirements).

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