The DMG gives some guidelines on p. 239:
"Consider granting advantage when...
- Circumstances not related to a creature's inherent capabilities provide it with an edge.
- Some aspect of the environment contributes to the character's chance of success.
- A player shows exceptional creativity or...