This is for the ML model and rely for this has a different number , but it explains more about the relays operation
https://www.justanswer.com/mercedes/7xb0p-hi-ml-nnn-nnn-nnnnmercedes-three-brake-lights.html
The relay is tied into the cruise control / abs /bas/asr and the gearbox shift lever interlink.