File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3636
3737@mcp .tool ()
3838def list_databases ():
39+ """List available ClickHouse databases"""
3940 logger .info ("Listing all databases" )
4041 client = create_clickhouse_client ()
4142 result = client .command ("SHOW DATABASES" )
@@ -45,6 +46,7 @@ def list_databases():
4546
4647@mcp .tool ()
4748def list_tables (database : str , like : str = None ):
49+ """List available ClickHouse tables in a database"""
4850 logger .info (f"Listing tables in database '{ database } '" )
4951 client = create_clickhouse_client ()
5052 query = f"SHOW TABLES FROM { quote_identifier (database )} "
@@ -131,6 +133,7 @@ def execute_query(query: str):
131133
132134@mcp .tool ()
133135def run_select_query (query : str ):
136+ """Run a SELECT query in a ClickHouse database"""
134137 logger .info (f"Executing SELECT query: { query } " )
135138 future = QUERY_EXECUTOR .submit (execute_query , query )
136139 try :
You can’t perform that action at this time.
0 commit comments