The endocrine pancreas is responsible for regulating blood glucose levels by releasing hormones such as insulin and glucagon directly into the bloodstream. It consists of clusters of cells known as the islets of Langerhans, which play a crucial role in maintaining energy balance in the body.