Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

declinePullRequest

Declines a Bitbucket pull request by repository and PR ID, with an optional reason message, so rejected changes can be closed without merging.

Instructions

Decline a 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": {
      "repoSlug": "<repoSlug>",
      "prId": "<prId>"
    },
    "name": "declinePullRequest"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYes
messageNoReason for declining
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2/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 burden of behavioral disclosure, yet it says nothing about what declining changes on the PR, whether it is reversible, whether the optional message is posted as a comment or notification, or what permissions are required. The verb 'decline' hints at a state mutation, but nothing beyond that is disclosed.

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 has no padding or redundancy, so structure is not the problem. However, brevity here is under-specification rather than conciseness: every sentence earns its place only because there is only one, and it carries almost no information.

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

Completeness1/5

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

This is a four-parameter mutation tool with no annotations and no output schema, so the description is the sole source of behavioral context – and it provides none. It is wholly inadequate for an agent to call the tool safely or correctly.

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 25% – only 'message' is documented, as 'Reason for declining'. The description adds no meaning for repoSlug, prId, or the optional projectKey, and gives no hint about how projectKey interacts with repoSlug or which identifier pair is needed to resolve the PR.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is 'Decline a pull request', which simply expands the tool name declinePullRequest into a sentence. It conveys no scope, no effect on the PR's state, and does not distinguish itself from siblings such as approvePullRequest beyond what the name already implies.

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 when-to-use guidance, no mention of prerequisites (e.g., reviewer role, open vs. merged state), and no reference to alternatives like approvePullRequest or reopenPullRequest. An agent must infer all routing decisions from the name alone.

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