In Harry Potter and the Sorcerer's Stone, the small bottle contains the potion that Dumbledore brewed to protect the Stone from anyone who wasn't meant to have it.
The potion was created to defeat a series of traps and obstacles that only someone with pure intentions could overcome. Harry's courage and pure heart allowed him to use the potion to pass through the flames and reach the Stone.