As the name implies, it is a switch that allows Glock pistols to switch freely between full-automatic and semi-automatic.
Usually, Glock pistols can only use semi-automatic mode except for glock18, so with the existence of Glock switch, it can break the restriction that only glock18 can be fully automatic and allow other models of glock to use full-automatic mode.