Glucose is reducing sugar and a well known mild reducing agent for different types of reaction. If the glucose is of aldoses category (containing aldehyde), then it directly serves as a reducing agent while if it is of ketoses (containing ketone), then it needs to tautomerize to aldoses before performing the reduction.
During the reduction process of metallic nanoparticles, these reducing sugars also act as surface stabilizers hence avoiding the aggregation.