[{'Text': '            return f"DATABASE ERROR: {e}"\n        except Exception as e:\n            return f"DATABASE ERROR: Failed to connect to ClickHouse: {e}"\n        \n        try:\n            return db.execute_safe_queries(sql_query)\n        finally:\n            db.close_connection()\n\n    def describe_ontology_table(\n        table_name: str,\n        ctx: Optional[Context] = None,\n    ) -> str:\n        """\n        Show the columns and types for a table in the ontology ClickHouse database.\n\n        Useful for exploring the schema or verifying column names before querying.\n\n        Args:\n            table_name: Unqualified table name, e.g. \'foaf_organization\', \'cto_measurement_record\'\n\n        Returns:\n            CSV with columns: name, type, comment\n        """\n        from point_topic_mcp.connectors.clickhouse import ClickHouseDB\n\n        db = ClickHouseDB()\n        try:\n            db.connect()\n        except RuntimeError as e:\n            return f"DATABASE ERROR: {e}"\n'}]