I imagine in some settings that the cost of the dagger is (regular cost of a dagger) + 500 gold. Any uncommon magic item which can be chosen for Tomb of Annihilation can be worth about 500 gold or less. Usually there are a few items with unique enchantments which are uncommon but have a specific price for purchase. Javelin of Lightning comes to mind.