Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

markPullRequestAsDraft

Set or clear a Bitbucket pull request's draft status via repository and pull request ID, enabling you to mark a PR as draft before review or remove draft status when ready.

Instructions

Set or clear PR draft status

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>",
      "prId": "<prId>",
      "draft": "<draft>"
    },
    "name": "markPullRequestAsDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYes
draftYestrue to mark as draft, false to remove draft status
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only implies a mutation without stating permission requirements, whether removing draft status re-triggers review or merge checks, or what the response looks like. The 'set or clear' phrasing does clarify that the tool is bidirectional, which is genuine but minimal added context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no filler or redundancy. It is efficient, though the terseness borders on under-specification given a four-parameter mutation.

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 four-parameter mutation with no annotations, no output schema, and 25% schema coverage, the description does far too little. An agent cannot learn what happens on success or failure, or how the optional projectKey affects scope, from the current text.

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 the draft boolean is documented in the schema. The description adds nothing about repoSlug, prId, or the optional projectKey, so an agent gets no help on the three required parameters beyond their names.

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?

"Set or clear PR draft status" gives a specific verb pair and resource, which tells an agent this is a toggle of draft state rather than a general status change. It is distinguishable from setPullRequestStatus and updatePullRequest, though it never names those siblings to disambiguate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no prerequisites, and no indication of how this differs from setPullRequestStatus or updatePullRequest, which an agent could reasonably pick instead. Beyond the name, there is nothing to steer tool selection.

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