Are chess engines too briliant to play good endgame? I watched some Komodo endgame play and what he is capable of is just horrible. From nice advantage with pawn up and activity he gives up two pawns ending in some miracle fortress position. Who can blame him when he knows everything about the endgame (7 man position for example using 6man tablebase) in a few seconds, knowing it is 0.00 everywhere, but still, is this the best chess engines can do with technical endgames? I see no imagination in his endgame play, no problem creation for oponent, just random moves not making his position worse in theoretic terms. Clearly he would lose many points playing this way with any human being incapable of precise play. Playing another perfect oposition they don't lose anything but still not sure I like such a design.

As far as I understnad engines, contempt has nothing to do with this problem, is there another setting that can help here?

Edit: example position

2k5/7R/r5p1/3K4/3P4/7P/8/8 b - - 0 1

1...g5 2.Ke4 Kd8 3.Ke5 Ra3 4.Rh6 Ke7 5.Rh8 Re3+ 6.Kd5 Kf6 7.Kc5 Kg7 8.Rh5 Kg6 9.Rh8 Kg7 10.Rb8 Rxh3 11.Rb2 g4 12.Rg2 g3 13.d5 Kf6 14.d6 Ke6 15.d7 *
The problem with an engine playing a drawn position with tablebases is that it has no concept of making life difficult for the opponent. All their moves are perfect in the sense that they don't turn a drawing position into a losing one -- not losing is guaranteed. But it has no concept of trying to win, and no way to decide between several moves that all lead to yet another drawn position, because in theory there is no difference.

If you turn off the tablebases, you get the normal engine play. It won't be perfect, but still usually much better than humans, and it uses an evaluation function that rewards material advantage, passed pawns, active pieces, and so on. That's probably what you want.