Removing Lid From Urn on Shabbt

I have a hot water urn that I use for shabbat. The nozzle broke so I cannot dispense the water to make tea. Am I allowed to open the top lid and withdraw the hot water and then close the lid back can I do this on shabbat. Does this violate the laws of cooking?

Ashkenazim don’t, Sedaradim can