The test is requested when there are signs or symptoms of kidney stones or calcium metabolism disorders, such as bone pain or fractures, muscle weakness, or urinary tract symptoms. It may also be ordered to monitor the progress of treatment for these conditions.