Skip to main content
Glama
JustTryAI

Databricks MCP Server

start_cluster

Start a terminated Databricks cluster by providing the required cluster ID parameter to resume data processing and analytics workflows.

Instructions

Start a terminated Databricks cluster with parameter: cluster_id (required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • MCP tool handler for 'start_cluster'. Registers the tool using @self.tool decorator and implements the execution logic by calling the underlying clusters.start_cluster API and formatting the response as MCP TextContent.
    @self.tool(
        name="start_cluster",
        description="Start a terminated Databricks cluster with parameter: cluster_id (required)",
    )
    async def start_cluster(params: Dict[str, Any]) -> List[TextContent]:
        logger.info(f"Starting cluster with params: {params}")
        try:
            result = await clusters.start_cluster(params.get("cluster_id"))
            return [{"text": json.dumps(result)}]
        except Exception as e:
            logger.error(f"Error starting cluster: {str(e)}")
            return [{"text": json.dumps({"error": str(e)})}]
  • Core implementation of cluster starting logic. Makes a POST request to the Databricks Clusters API endpoint /api/2.0/clusters/start with the cluster_id.
    async def start_cluster(cluster_id: str) -> Dict[str, Any]:
        """
        Start a terminated Databricks cluster.
        
        Args:
            cluster_id: ID of the cluster to start
            
        Returns:
            Empty response on success
            
        Raises:
            DatabricksAPIError: If the API request fails
        """
        logger.info(f"Starting cluster: {cluster_id}")
        return make_api_request("POST", "/api/2.0/clusters/start", data={"cluster_id": cluster_id})
  • Registration of the 'start_cluster' tool in the DatabricksMCPServer using the FastMCP @tool decorator, specifying name and description.
    @self.tool(
        name="start_cluster",
        description="Start a terminated Databricks cluster with parameter: cluster_id (required)",
    )

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/JustTryAI/databricks-mcp-server'

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