Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_decline_pull_request

Declines a Bitbucket pull request using the repository and pull request ID, with an optional decline message, to reject unwanted code changes.

Instructions

Declines a Bitbucket pull request

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": {
      "repository": "<repository>",
      "prId": "<prId>"
    },
    "name": "bitbucket_decline_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesPull request ID
messageNoReason for declining
projectNoBitbucket project key
repositoryYesRepository slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and provides almost none of it. It does not say whether declining is reversible, whether the PR author is notified, whether an optional reason is recorded, what error behavior occurs if the PR is already merged or closed, or what permission level is required for a destructive state change.

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

Conciseness3/5

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

The single sentence is front-loaded and contains no filler, but that is because it says almost nothing. It is appropriately sized only in the sense that there is no redundancy to trim; the brevity reflects under-specification rather than tight writing.

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, effectively destructive operation with four parameters, no annotations, and no output schema, one sentence is not complete enough. An agent cannot determine side effects, reversibility, or notification behavior from this definition.

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%, with every parameter (prId, repository, project, message) already documented in the schema, so the baseline of 3 applies. The description adds no meaning beyond the schema, notably omitting that an optional message is attached as the decline reason.

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?

The description states a specific verb and resource ("Declines a Bitbucket pull request"), so the operation is unambiguous. It does not differentiate itself from adjacent state-changing siblings such as bitbucket_merge_pull_request or bitbucket_approve_pull_request, which is the only thing separating this from a 5.

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?

There is no guidance on when to decline versus when to use related tools like merge or approve, and no mention of prerequisites such as the PR being open or unmerged. The agent is left to infer the entire usage context from the tool name.

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