A grama (Talmudic Aramaic: גרמא) in Halacha (Jewish law) is something that was indirectly[1] caused by something else but which outcome is not guaranteed.
A classic example given to this is of vases that are filled with water and put around a fire in order to extinguish it. This is allowed on Shabbat[2] because it is indirect and because the fire might not extinguish.