Since Gelatinous CubeCubes have the transparent trait, do you need to do an action perception check to spot it or you could use your passive perception?
Transparent trait: Even when the cube is in plain sight, it takes a successful DC 15 Wisdom (Perception) check to spot a cube that has neither moved nor attacked. A creature that tries to enter the cube's space while unaware of the cube is surprised by the cube.