Nail scraping is indicated when a patient presents with symptoms such as discoloration, thickening, or deformity of the nails. These symptoms may suggest an underlying condition such as a fungal infection (onychomycosis), bacterial infection, or psoriasis. The procedure helps in identifying the causative organism, which is crucial for effective treatment.