Function of glucose?

In organism, e.g. in human, glucose is a source of energy. It is decomposed to CO2 and H2O. Energy of electrons gained from decomposition of the glucose are used for synthesis of ATP which is the basic and universal energy "currency" in body.