in src/lindorm_mcp_server/lindorm_wide_table.py [0:0]
def describe_table(self, table_name: str) -> str:
try:
self.cursor.execute(f"DESCRIBE TABLE {table_name}")
columns = [desc[0] for desc in self.cursor.description]
rows = self.cursor.fetchall()
result = [",".join(map(str, row)) for row in rows]
return "\n".join([",".join(columns)] + result)
except Error as e:
return f"Error executing DESCRIBE TABLE {table_name}: {str(e)}"