Skip to content

Add manage_genie_instructions MCP tool for Genie space instructions#271

Open
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
CheeYuTan:feat/genie-instructions-tool
Open

Add manage_genie_instructions MCP tool for Genie space instructions#271
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
CheeYuTan:feat/genie-instructions-tool

Conversation

@CheeYuTan
Copy link
Contributor

Summary

  • New manage_genie_instructions MCP tool that exposes the existing core library instruction management capabilities
  • Supports: list, add_text, add_sql, add_sql_function, add_batch actions
  • 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 enables LLM agents to programmatically configure Genie spaces with text guidance and SQL examples

Test proof

Tested against live workspace (e2-demo-field-eng):

TEST 1 - List instructions: 6 found
  - [TEXT_INSTRUCTION] Notes
  - [SQL_INSTRUCTION] Current OEE vs Target by Line (latest completed ho
  - [SQL_INSTRUCTION] Find when L3 first dropped below 0.75 and consecut

TEST 2 - Instruction types found: {'TEXT_INSTRUCTION', 'SQL_INSTRUCTION'}
  PASS
Test Result
genie_list_instructions returns instruction list PASS — 6 instructions found
Instruction types include TEXT_INSTRUCTION and SQL_INSTRUCTION PASS
Core library methods are callable from MCP tool layer PASS
Tool follows existing manage_* pattern (action-based dispatch) PASS

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant