MRS operates by detecting the magnetic properties of atomic nuclei. When placed in a magnetic field, these nuclei resonate at specific frequencies that can be detected and analyzed. This technique is particularly useful for understanding the metabolic pathways affected by toxic compounds, allowing researchers to monitor changes in metabolites in vivo.