Refers to the building material (cement, sand, and water), not the weapon or the bowl.
レンガを積むのにモルタルを使う。
We use mortar to lay bricks.
We applied mortar to the wall to finish the surface.
The bricks were set and stacked using mortar.
The worker is mixing the mortar.