If you insist on something idiomatic: "Этот клапан - то, что доктор прописал."
It's not like this expression is an exact equivalent of "do the trick" but it does the trick in this case.