Indian benchmark indices closed in the green but gave up most intraday gains as investors remained cautious about monsoon risks and global oil market signals.