Glipizide is a second-generation sulfonylurea used to treat type 2 diabetes. It stimulates insulin secretion from pancreatic beta cells. The other drugs listed—repaglinide and nateglinide—are meglitinides, and metformin is a biguanide, which works by reducing hepatic glucose production.