You will need to check what system is failing. It could be the throttle switch, idle valve, or controller for the idle. I would have a pro look at this. I have seen many misdiagnoses over this complaint.
ASE CERTIFIED MASTER AUTO TECHNICIAN
MERCEDES SPECIALIST 11 YRS