No.
You can store a prepared spell of 3rd level or lower in the glyph by
casting it as part of creating the glyph. The spell must target a
single creature or an area. The spell being stored has no immediate
effect when cast in this way. When the glyph is triggered, the stored
spell is cast.
At 10th level, when you cast a spell using a spell slot of 4th level
or lower, you can condense the spell's magic into a mote. The spell is
frozen in time at the moment of casting and held within a gray bead
for 1 hour.
Emphasis mine; in order to successfully cast a Glyph of Warding: Spell Glyph, you must store the spell as part of creating the glyph, which happens in the same casting action.
This is impossible in your setup, because the spell is instead stored inside the bead, rather than inside the glyph. You cannot store the bead inside the glyph, because until it releases the spell, it is not the spell.
Unable to fulfill its prerequisite of storing the spell in the glyph when you cast it, the entire spell fails, and the slot is wasted.
One might think there's a way around this by releasing the spell from the bead as you cast a glyph, since -
A creature holding the bead can use its action to release the spell
within, whereupon the bead disappears. The spell uses your spell
attack bonus and save DC, and the spell treats the creature who
released it as the caster for all other purposes
But this also doesn't work, since releasing the spell from the bead takes an action, and you must store the spell as part of creating the glyph, which means it must happen in the same unbroken casting as the action you cast the glyph with.