Add new Compute Management skill for cluster and warehouse selection#224
Open
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
Open
Add new Compute Management skill for cluster and warehouse selection#224CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
Conversation
…a MCP New skill documenting 6 MCP tools for compute management: list_clusters, list_warehouses, get_best_cluster, get_best_warehouse, get_cluster_status, start_cluster Tested through 10 iterations against a live workspace. Key fixes: - Fixed execute_sql param name (sql -> sql_query) - Fixed execute_databricks_command param name (command -> code) - Corrected get_best_warehouse selection logic to match actual 7-step priority algorithm from MCP source code - Added start_cluster "already running" return variant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New skill documenting 6 MCP tools for Databricks compute management. No compute skill existed — agents had no guidance on how to select, start, or monitor clusters and warehouses.
Tools documented:
list_clusters,list_warehouses,get_best_cluster,get_best_warehouse,get_cluster_status,start_clusterWhat's in the skill
Test evidence — 10 iterations of test-and-fix
Live MCP tool tests
list_clusters{}Steven Tan's Personal Compute Cluster, state=RUNNINGlist_warehouses{}Serverless Starter Warehouse, state=RUNNING, size=Smallget_best_cluster{}{"cluster_id": "1203-135841-22k8xamq"}get_best_warehouse{}"d41ad9fd669499ed"(bare string)get_cluster_status{cluster_id: "1203-135841-22k8xamq"}{state: "RUNNING", message: "...running and ready for use."}get_cluster_status{cluster_id: "invalid-id"}ResourceDoesNotExisterrorstart_cluster{cluster_id: "1203-135841-22k8xamq"}(already running){state: "RUNNING"}— noprevious_statefieldMCP tool schema verification
All 6 tool JSON schemas read and cross-referenced with skill documentation — parameter names, types, and required/optional status all match.
What the 10 iterations found and fixed
execute_sqlparam wassql=— actual param issql_query=execute_databricks_commandparam wascommand=— actual param iscode=get_best_warehouseselection logic was wrong ("prefers smaller sizes") — actual logic is a 7-step priority algorithmstart_clusteron already-running cluster returns different format (noprevious_state)Edge cases verified
ResourceDoesNotExisterrorget_best_clusterreturns{"cluster_id": null}get_best_warehousereturnsnullTest plan
validate_skills.py— 27 skills)install_skills.shdatabricks-configskill verified