What is the substrate for glycogenesis?
A pathway doesn’t have substrates, only a reaction does. And therefore there’s no such thing as a direct or indirect substrate. You can perhaps ask what the precursors are for glycogen (but do you mean immediate or distal), or what the substrates are for the first reaction in the pathway (but only if it is quite clear what the first reaction i).

That’s the trouble with trick questions. They are generally badly worded and tend to lend nothing to biology education.