Add serialized_space support, clone tool, and instruction management for Genie#285
Open
CheeYuTan wants to merge 3 commits intodatabricks-solutions:mainfrom
Open
Add serialized_space support, clone tool, and instruction management for Genie#285CheeYuTan wants to merge 3 commits intodatabricks-solutions:mainfrom
CheeYuTan wants to merge 3 commits intodatabricks-solutions:mainfrom
Conversation
- genie_get: add include_serialized_space param to export full config - genie_create/genie_update: accept serialized_space for import - New clone_genie MCP tool for one-step space cloning - Core library (AgentBricksManager) updated to pass serialized_space through the /api/2.0/data-rooms REST API Fixes databricks-solutions#83
Exposes the existing core library instruction management capabilities as an MCP tool. Supports listing, adding text instructions, SQL query examples, SQL functions, and batch operations. The core library already had genie_list_instructions, genie_add_text_instruction, genie_add_sql_instruction, etc. but these were not accessible via MCP tools.
This was referenced Mar 10, 2026
Contributor
|
@CheeYuTan have you taken a look at #233 ? Looks quite similar to this, would be great to unify both. I also left my two cents in #172 |
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
Consolidates PRs #270 and #271 into a single PR — both enhance Genie Space MCP tools.
Changes:
genie.pyserialized_spaceparam tocreate_or_update_genieandget_geniegenie.pyclone_genietool — export/import full space configgenie.pymanage_genie_instructionstool — list, add text/SQL/batch instructionsmanager.pyinclude_serialized_spaceingenie_getandserialized_spaceingenie_create/genie_updateauth.py,test_sql.pyNew tools:
clone_genie(source_space_id, new_display_name, warehouse_id?, description?)Exports a Genie Space's full configuration (settings, instructions, sample questions) and creates a new space from it. Useful for promoting across environments or creating team variants.
manage_genie_instructions(space_id, action, ...)Manage instructions that guide Genie's SQL generation:
list— list all instructionsadd_text— add a text instruction/noteadd_sql— add a SQL query exampleadd_sql_function— add a certified SQL functionadd_batch— add multiple SQL instructions at onceTest plan
ruff checkpassesruff format --checkpassesclone_geniecorrectly callsgenie_getwithinclude_serialized_space=Truethengenie_createwith the exported configmanage_genie_instructionsdispatches all 5 actions correctly with proper error handling