Database Connection Tools
list_all_connections
List all configured database connections and their provider modes. Parameters: None Returns: List of connection IDs with provider information (MySQL AI or HeatWave) Example:execute_sql_tool_by_connection_id
Execute SQL statements on a specific database connection. Parameters:connection_id(string, required): Database connection identifiersql_script(string, required): SQL statement(s) to executeparams(object, optional): Parameters for parameterized queries
ML and GenAI Tools
ml_generate
Generate text using GenAI models. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Text generation prompt
ragify_column
Create and populate a VECTOR column with embeddings from a text column. Parameters:connection_id(string, required): Database connection identifiertable_name(string, required): Name of the tableinput_column_name(string, required): Source text columnembedding_column_name(string, required): Target VECTOR column (will be created if it doesn’t exist)
The
ragify_column tool works identically on both MySQL AI and MySQL HeatWave connections.heatwave_ask_help
Ask natural language questions about MySQL HeatWave AutoML features using NL2ML. Parameters:connection_id(string, required): HeatWave database connectionquestion(string, required): Natural language question about HeatWave ML
ask_nl_sql
Convert natural language questions into SQL queries and execute them automatically. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Natural language question
retrieve_relevant_schema_information
Retrieve relevant schemas and tables (DDL) for a natural language question. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Natural language question
Vector Store Tools
list_vector_store_files_local
List available files in thesecure_file_priv directory for local ingestion.
Parameters:
connection_id(string, required): Database connection identifier
load_vector_store_local
Load documents from the local filesystem into a vector store. Parameters:connection_id(string, required): Database connection identifierfile_path(string, required): Path to file insecure_file_privdirectory
load_vector_store_oci
Load documents from OCI Object Storage into a vector store. Parameters:connection_id(string, required): HeatWave database connectionnamespace(string, required): OCI Object Storage namespacebucket_name(string, required): Bucket containing documentsdocument_prefix(string, required): Prefix filter for objects to load
ask_ml_rag_vector_store
Perform RAG (Retrieval-Augmented Generation) query on the default vector store. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Natural language questioncontext_size(integer, optional): Number of context chunks to retrieve
ask_ml_rag_innodb
Perform RAG query restricted to InnoDB tables using specified segment and embedding columns. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Natural language questionsegment_col(string, required): Column containing text segmentsembedding_col(string, required): Column containing vector embeddingscontext_size(integer, optional): Number of context chunks to retrieve
On MySQL HeatWave, this tool loads the InnoDB table into the HeatWave cluster for maximum performance. On MySQL AI, processing occurs within the database service instance.
ask_ml_rag_vector_store (skip_generate mode)
Retrieve segments from the default vector store without text generation. Parameters:connection_id(string, required): Database connection identifierquestion(string, required): Natural language questioncontext_size(integer, optional): Number of segments to retrieve
OCI Object Storage Tools
These tools require a valid OCI configuration file (
~/.oci/config). See Configuration for setup details.list_all_compartments
List all compartments in your OCI tenancy. Parameters: None Returns: List of compartment names and OCIDs Example:object_storage_list_buckets
List buckets in a specific compartment. Parameters:compartment_name(string, optional): Compartment namecompartment_id(string, optional): Compartment OCID (alternative to name)
object_storage_list_objects
List objects in a bucket. Parameters:namespace(string, required): OCI Object Storage namespacebucket_name(string, required): Bucket name
Tool Compatibility Matrix
| Tool | MySQL AI | HeatWave | OCI Config Required |
|---|---|---|---|
| list_all_connections | ✅ | ✅ | ❌ |
| execute_sql_tool_by_connection_id | ✅ | ✅ | ❌ |
| ml_generate | ✅ | ✅ | ❌ |
| ragify_column | ✅ | ✅ | ❌ |
| heatwave_ask_help | ❌ | ✅ | ❌ |
| ask_nl_sql | ✅ | ✅ | ❌ |
| retrieve_relevant_schema_information | ✅ | ✅ | ❌ |
| list_vector_store_files_local | ✅ | ❌ | ❌ |
| load_vector_store_local | ✅ | ❌ | ❌ |
| load_vector_store_oci | ❌ | ✅ | ✅ |
| ask_ml_rag_vector_store | ✅ | ✅ | ❌ |
| ask_ml_rag_innodb | ✅ | ✅ | ❌ |
| list_all_compartments | ✅ | ✅ | ✅ |
| object_storage_list_buckets | ✅ | ✅ | ✅ |
| object_storage_list_objects | ✅ | ✅ | ✅ |
Error Handling
The server provides clear, actionable error messages:- Unsupported Connection Type: When a tool is used with an incompatible database mode
- Missing OCI Config: When cloud features are used without OCI configuration
- SQL Errors: Database errors with query context
- Parameter Validation: Missing or invalid tool parameters
Next Steps
Vector Stores
Learn about loading documents and RAG queries
ML & GenAI
Deep dive into ML/GenAI features
