Prostaglandins function to activate an inflammatory response, which is the body’s way of neutralizing an infection caused by internal or external stimuli (burns, toxins, frostbite, radiation and splinters). Typical inflammatory responses include fever, the sensation of pain and swelling.