If edgy trio gets panicky in the middle, this will do them good (5)
I believe the answer is:
tonic
'good' is the definition.
(thesaurus)
I cannot understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for tonic that I've seen before include "Producing tension of muscles" , "Keynote of a scale" , "Accompaniment to gin?" , "Stimulant" , "__water; gin mixer" .)