Well you need to look up not just the "energy" and "efficiency" content, but "entropy" and "enthalpy".
For example, a Stirling engine can take a mass of hot liquid or gas and
a mass of cold liquid or gas and make work out of it. However, if it has no cold mass, it cannot do any work. If I place it in a sealed tank of 300F fluid it can't work.
That's not a limitation of only the Stirling design. It's a limitation of ALL machines and processes. Think of it like having a tank of 100PSI air and an air turbine to generate electricity. If I lived on the surface at 14PSI, I could let the air blow through the turbine. It raises the pressure of the environment (though the environment being so huge it's an inconsequential amount). But if I try to install it in undersea research sub and the pressure outside is 100PSI, the pressure is the same and the air won't flow. We can only extract useful energy (work) through lessening the energy difference between two mediums. Sad too- I mean a refrigerator should MAKE electricity otherwise, shouldn't it? You're trying to take energy out of a box. But no, there's like 200 years of solid science on this one and it's as solid as the "energy is neither created nor destroyed" principle.