Get Gran Colombia, but have Venezuela still end up seceding. Fight Peru for the Loreto Region. Get a weak Brazil where they can't enforce their claims to Amazonia. I believe there was a theoretical Spanish claim to the mouth of the Amazon, which was attached to New Granada.
So I believe all that would meet your critera.