What is an upper GI endoscopy? An upper GI endoscopy or EGD (esophagogastroduodenoscopy) is a procedure to diagnose and treat problems in your upper GI (gastrointestinal) tract. The upper GI tract ...