MB2 144b: Bracha on Medicine, Bathing, Parnassah, and Other Actions (230:1-5)

What constitutes a tefillah said in vain? The tefillah said before entering a city, before medical procedures/medicine, and the imperative of always saying gam zu l'tovah.