Circumstance alt of the Genie in Disney's Aladdin with a bunch of lore from The Art of Wishing book series by Lindsay Ribar.
"When you picked up my ring, it opened a link between your mind and my magic. I can’t see all your thoughts, but I can see the ones about wanting. The ones that might turn into wishes. That way, when you make your wishes, I can see the shape of the desire behind them. None of that stuff about wording things exactly right so your genie doesn’t screw you over. You make a wish, I give you what you want. Easy as that."