The primary function of GRP is to stimulate the release of gastrin from G cells in the stomach. Gastrin, in turn, promotes the secretion of gastric acid, which is essential for digestion. Additionally, GRP influences the release of other gastrointestinal hormones, modulates gastric motility, and can affect the growth of certain types of cells.