Skip to main content
Glama

delete_pipeline_variable

Remove a pipeline variable from a Bitbucket repository to manage CI/CD configuration and eliminate unused or sensitive environment settings.

Instructions

Delete a pipeline variable.

Args: repo_slug: Repository slug variable_uuid: Variable UUID (from list_pipeline_variables) Returns: Confirmation of deletion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_slugYes
variable_uuidYes

Implementation Reference

  • MCP tool handler for delete_pipeline_variable. Calls the BitbucketClient method to perform the deletion and returns confirmation.
    @mcp.tool() @handle_bitbucket_error @formatted def delete_pipeline_variable(repo_slug: str, variable_uuid: str) -> dict: """Delete a pipeline variable. Args: repo_slug: Repository slug variable_uuid: Variable UUID (from list_pipeline_variables) Returns: Confirmation of deletion """ client = get_client() client.delete_pipeline_variable(repo_slug, variable_uuid) return {}
  • BitbucketClient helper method that performs the actual DELETE API request to remove the pipeline variable.
    def delete_pipeline_variable( self, repo_slug: str, variable_uuid: str ) -> bool: """Delete a pipeline variable. Args: repo_slug: Repository slug variable_uuid: Variable UUID Returns: True if deleted successfully """ variable_uuid = ensure_uuid_braces(variable_uuid) self._request( "DELETE", self._repo_path(repo_slug, "pipelines_config", "variables", variable_uuid), ) 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