You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Name the molecular formula for the molecule established as magnesium;2-oxo-3H-indole-1-carboxamide using the IUPAC nomenclature.
user
C9H8MgN2O2+2
assistant