Tomatoes are relatively high in oxalates, compounds that can contribute to the formation of certain types of kidney stones. People prone to kidney stones, particularly calcium oxalate stones, are often advised to limit high-oxalate foods. Lemon, vinegar, and lentils do not have the same association with kidney stone formation.