An upper gastrointestinal (UGI) endoscopy is a procedure that allows to look at the interior lining of your esophagus, your stomach, and the first part of your small intestine through a thin, flexible viewing instrument called an endoscope. The tip of the endoscope is inserted through your mouth and then gently moved down your throat into the esophagus, stomach, and duodenum (upper gastrointestinal tract).
Since the entire upper gastrointestinal (GI) tract can be examined during this test, the procedure is sometimes called Esophago Gastroduo Denoscopy (EGD).