An upper GI endoscopy — also called an esophagogastroduodenoscopy (EGD) — is an examination of the upper gastrointestinal (GI) tract with a slim, flexible, lighted tube. The upper GI tract includes the throat, esophagus, stomach, and first part of the small intestines (duodenum).