An oral glucose tolerance test (OGTT) is a diagnostic procedure used to evaluate how the body processes glucose. It helps in diagnosing conditions such as diabetes mellitus and gestational diabetes. The test measures the body's ability to metabolize glucose, the primary source of energy for cells.