Skip to main content
Glama

unapprove_pr

Remove your approval from a Bitbucket pull request to indicate changes are needed or to reconsider your review decision.

Instructions

Remove your approval from a pull request.

Args: repo_slug: Repository slug pr_id: Pull request ID Returns: Confirmation of approval removal

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_slugYes
pr_idYes

Implementation Reference

  • MCP tool handler function that removes approval from a pull request by calling BitbucketClient.unapprove_pr
    @mcp.tool() @handle_bitbucket_error @formatted def unapprove_pr(repo_slug: str, pr_id: int) -> dict: """Remove your approval from a pull request. Args: repo_slug: Repository slug pr_id: Pull request ID Returns: Confirmation of approval removal """ client = get_client() client.unapprove_pr(repo_slug, pr_id) return {"pr_id": pr_id}
  • BitbucketClient helper method that sends DELETE request to unapprove the PR via Bitbucket API
    def unapprove_pr( self, repo_slug: str, pr_id: int ) -> bool: """Remove approval from a pull request. Args: repo_slug: Repository slug pr_id: Pull request ID Returns: True if successful """ self._request( "DELETE", self._repo_path(repo_slug, "pullrequests", str(pr_id), "approve"), ) return True

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JaviMaligno/mcp-server-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server