This test measures the amount of ammonia in the blood. Ammonia is a compound produced by intestinal bacteria and by cells in the body during the digestion of protein. It is a waste product that is normally transported to the liver, where it is converted into urea and glutamine.