What is this used for?

Purchased my first 5.56 calibre rifle and bought some ammo when opening the pack it came with this metal bracket thing. What is it used for? Can green tips be used at an indoor range?

Purchased my first 5.56 calibre rifle and bought some ammo when opening the pack it came with this metal bracket thing. What is it used for? Can green tips be used at an indoor range?