Skip to main content
Glama

delete_group_permission

Remove a group's explicit access permission from a Bitbucket repository to control repository security and access management.

Instructions

Remove a group's explicit permission from a repository.

Args: repo_slug: Repository slug group_slug: Group slug Returns: Confirmation of removal

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_slugYes
group_slugYes

Implementation Reference

  • MCP tool handler for 'delete_group_permission'. Registers the tool with FastMCP and delegates to BitbucketClient.delete_group_permission.
    @mcp.tool() @handle_bitbucket_error @formatted def delete_group_permission(repo_slug: str, group_slug: str) -> dict: """Remove a group's explicit permission from a repository. Args: repo_slug: Repository slug group_slug: Group slug Returns: Confirmation of removal """ client = get_client() client.delete_group_permission(repo_slug, group_slug) return {}
  • Core implementation in BitbucketClient that performs the DELETE API request to remove group permissions from a repository.
    def delete_group_permission( self, repo_slug: str, group_slug: str ) -> bool: """Remove group permission from repository. Args: repo_slug: Repository slug group_slug: Group slug Returns: True if deleted successfully """ self._request( "DELETE", self._repo_path(repo_slug, "permissions-config", "groups", group_slug), ) return True
  • FastMCP @mcp.tool() decorator registers the delete_group_permission function as an MCP tool.
    @mcp.tool()
  • Invocation of the Bitbucket client helper within the MCP tool handler.
    client = get_client() client.delete_group_permission(repo_slug, group_slug)

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