[{"from": "human", "value": "Generate a molecule based on this description. The molecule is a hydrate that is the monohydrate of ammonium magnesium phosphate. A constituent of urinary calculi. It has a role as a fertilizer. It contains an ammonium magnesium phosphate."}, {"from": "gpt", "value": "[NH4+1].[O].[O-1][P][=Branch1][C][=O][Branch1][C][O-1][O-1].[Mg+2]"}]