My understanding is that, by absorbing passing nitrates and such, most varieties of fungus greatly
improve the quality of groundwater beneath them.
Fungi tend to poison their competitors or predators, if anyone. I think the endophytes you're considering live deep
enough that vertebrates like us are not enough of a problem to select for chemical defenses.
"the qualities of these bacteria, like the heat of the sun, electricity, or the qualities of metals, are part of the storehouse of knowledge of all men. They are manifestations of the laws of nature, free to all men and reserved exclusively to none." SCOTUS, Funk Bros. Seed Co. v. Kale Inoculant Co.