This test checks the amount of ammonia in your blood. Ammonia may build up in your body if you have kidney or liver failure.