Unraveling the mechanical behaviour of MOFs: A thermodynamic exploration