This internal view of the inside of your upper gastrointestinal tract results from the endoscope being carefully inserted down your throat into your esophagus, stomach and the first part of your small intestine. Upper endoscopies (also called an EGD) give your surgeon more accurate information than X-rays to identify inflammation, ulcers or tumors of the esophagus, stomach or duodenum.