Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_approve_pull_request

Approves a Bitbucket pull request by repository and PR ID, with optional project key and version for optimistic locking.

Instructions

Approves 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_approve_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesPull request ID
projectNoBitbucket project key
versionNoOptional pull request version for optimistic locking.
repositoryYesRepository slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and delivers almost nothing: it does not say whether approval is idempotent, whether it can be withdrawn, what permissions or reviewer role are required, or what the response contains. The only behavioral signal is the implicit mutation, which is already evident from the verb.

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?

A single front-loaded sentence with zero filler, which is structurally clean. It is arguably under-specified rather than verbose, so the terseness costs it nothing on this dimension but also earns no extra credit.

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?

This is a simple single-target mutation with a fully documented four-parameter schema and no output schema, so the description does not need to explain return values. However, for a write operation with zero annotations, the absence of any permission, idempotency, or error-condition context leaves a meaningful gap.

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 all four parameters (prId, repository, project, version) are already documented in the schema, and the description adds nothing further. Per the high-coverage baseline, a 3 is appropriate; notably it says nothing about the optional version parameter's optimistic-locking implications.

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 pairs a specific verb ("Approves") with a specific resource ("a Bitbucket pull request"), so the agent knows exactly what operation this performs. It does not explicitly contrast with siblings like bitbucket_decline_pull_request or bitbucket_merge_pull_request, but the verb itself is unambiguous against those names.

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 use this versus decline or merge, no mention of prerequisites (e.g., the PR must be open, the caller must be a reviewer), and no note on what happens if the PR is already approved. The agent must infer all of this 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.