My concern would not be what they are "carrying" in terms of any disease or parasite that would affect a frog, but in the disruption of the terrarium soil and subsequent plant root disturbance they will cause. I would also wonder what they are living on in there, as they are foragers. If they are sugar ants or Pharaoh ants they will eventually go foraging through your house if your frog doesn't happen to eat them up first. You could offer him a couple of them and see how he reacts to them while he's still in his container. (Like Joseph, I hate to see potentially good food go to waste).
I don't know much about the different ant species, but have read some recent horror tales of an ant specie that invaded a tree frog tank and actually killed all the frogs. Although the tiny sugar ant, or Pharaoh ant species would be unlikely to do this, I wonder if a large number of them would cause some stress to the frog.
-----
Patty
Lost River, Idaho
4 D. auratus blue
3 D. galactonotus pumpkin orange splash back
5 D. imitator
4 D. leukomelas
4 D. pumilio Bastimentos