Genies can be trapped in a lamp for long periods of time, maybe hundreds or thousands of years. They are made of vapour so this doesn't inconvenience them much. Whilst in the lamp they don't have a human form but they can hear speech (and therefore summoning spells) and can feel someone rubbing the lamp. It is dark inside the lamp.
There is nothing else in the lamp apart from the genie's vaporous self.
Genies have great powers to grant wishes and in fact they can grant themselves three (and only three) wishes during the whole of their existence.
Genies are constrained by a Higher Power to remain genies until the Final Day. They must stay in the lamp at all times except when summoned. When summoned they must emerge and grant the summoner three wishes then return to the lamp. The summoner can require all three wishes at the same time or at different times.
Genies cannot countermand any restrictions imposed by the Higher Power.
The Genie only has three wishes for itself in total yet it may be summoned many times by different people over the centuries and millennia. Outside conditions may change drastically so they need to choose wisely.
Genies can only grant wishes including their own whilst outside the lamp.
The Genie's (unavoidable) task is to grant as many wishes as possible but also to be as tricky as possible about it so that wishes are, if possible, granted in an undesirable way the summoner hasn't thought of. One of the paradoxes of this is that the genie must grant its own wishes in the least favourable way! I need to know what the wishes should be but also what unfavourable outcomes could come from these wishes and how the genie can avoid tricking itself.
What should the genie wish for?