Its purpose is to vent or bleed unwanted air from the engine to the top of the coolant tank. IF it is plugged up, you will have air pockets forming inside the cylinder head and this could lead to running warm.
The other vent hose that is near the cap is for over pressure relief.
ASE CERTIFIED MASTER AUTO TECHNICIAN
MERCEDES SPECIALIST 11 YRS