An anime about MMO with a glasses wearing protagonist
I do believe you're talking about Log Horizon. Some relevant plot points that matches your description:


The setting is an MMO world called Elder Tales. All the players currently logged on cannot log out.
The main character wears glasses, is smart, and is considered one of
the best strategists in the game's community.
There is no perma-death, but there is a penalty for it, which will be
revealed later in the series.
The first season has heavy emphasis on the politics and economy of
the game world. It shows how the players and the NPC interacts, how the NPC interacts with other NPCs, etc.


For more info, you can check out its Wikipedia article or look through its own Wikia site.