Your example returns false here (the doc says it should return true on success). SetToggleCommandState is only for ReaScripts, to make its toolbar icon appear pressed like this:
.
It doesn't work on extension actions. Use Main_OnCommand if you just want to
run _SWSTL_TOGTCP or SetMediaTrackInfo_Value to set the TCP visibility of a given track.
As for the section identifiers:
Code:
0/100=main/main alt, 32063=media explorer, 32060=midi editor, 32061=midi event list editor, 32062=midi inline editor, etc