You need to check the throttle switch to be sure that the idle portion is working. Next, the idle control valve is in order to check.
If you don't know what I am talking about, take it to a tech. The idle systems are very complex for those who haven't the experience on diagnosis of Mercedes.
ASE CERTIFIED MASTER AUTO TECHNICIAN
MERCEDES SPECIALIST 11 YRS