Gamma-ray spectroscopy (GRS) has become an established technique to determine properties of the distribution function of the energetic particles in the MeV range, which are fast ions from heating and fusion reactions or runaway electrons born in disruptions.In this paper we present a selection of recent results where GRS is key to investigate the physics of MeV range particles. These range from radio-frequency heating experiments, where theoretical models can be tested with an unprecedented degree of accuracy, to disruption mitigation studies, where GRS sheds light on the effect of the actuators on the runaway electron velocity space. We further discuss the unique observational capabilities offered by the technique in deuterium-tritium plasmas, particularly with regard to the inference of the energyand pitch-resolved distribution function of the α particles born from fusion reactions in the plasma core.