An anime with a scene where the protagonist fights against biological dolls
This sounds a lot like a scene in Ghost in the Shell 2: Innocence. Ponytail-san would be Batou. Those are his cyborg eyes, not glasses.