A stent is a small metal or plastic tube put into the stomach to relieve a blockage and open up the passage. Cancer in the stomach can partly or completely block it and make it difficult to swallow. You have the stent fitted in hospital in the endoscopy department or x-ray department.