Skip to main content
Glama
Bitbucket MCP Server
by pdogra1299

set_review_status

Idempotent

Set your reviewer status on a Bitbucket pull request to APPROVED, NEEDS_WORK, or UNAPPROVED, with an optional comment, in one call.

Instructions

Set YOUR reviewer status on a PR: APPROVED, NEEDS_WORK (request changes), or UNAPPROVED (clear). One call; the three states are mutually exclusive.

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": {
      "workspace": "<workspace>",
      "repository": "<repository>",
      "pull_request_id": "<pull_request_id>",
      "status": "<status>"
    },
    "name": "set_review_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes
commentNoOptional explanatory comment
workspaceYesProject key (e.g., PROJ)
repositoryYesRepository slug
pull_request_idYesPull request ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the safety profile is covered; the description adds real value by clarifying that UNAPPROVED clears a prior review and that the states are mutually exclusive rather than additive. It stops short of disclosing permission requirements or what happens to an existing review comment when the status is changed.

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?

Two sentences, both front-loaded: the action and states come first, the operational caveat second. Nothing is redundant and there is no filler.

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?

For a 5-parameter mutation with no output schema, the description covers what the tool does and the state model well. It omits the return behavior (e.g., whether the resulting review object is returned) and permission/self-approval constraints, which an agent would still want before invoking.

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

Parameters4/5

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

Schema coverage is 80%, so the baseline is 3, but the description earns an upgrade by glossing the enum: NEEDS_WORK means 'request changes' and UNAPPROVED means 'clear', which the bare enum values do not convey. It says nothing about the optional 'comment' parameter or how it interacts with the status.

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

Purpose5/5

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

Uses a specific verb ('Set') with a precisely scoped resource ('YOUR reviewer status on a PR') and enumerates the three legal states. No sibling tool (update_pull_request, merge_pull_request, decline_pull_request, add_comment) does review-status setting, and the 'YOUR' qualifier makes the personal-reviewer scope unmistakable.

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?

'One call; the three states are mutually exclusive' is a useful usage rule that tells the agent not to chain calls. However, there is no guidance on when to reach for this versus add_comment or update_pull_request, and no stated preconditions such as being a reviewer or not being the PR author.

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