What is the primary purpose of the modified ovipositor in a female mason bee?

Answer

Egg-laying and defense.

Male mason bees lack the modified ovipositor, which females use for both laying eggs and defense (stinging).

What is the primary purpose of the modified ovipositor in a female mason bee?
insectbeestingreactionMason Bee