Tuberculosis triggers a type 1 immune response characterized by IL-12, IFN-γ, and TNF-α production, while toxocariasis elicits a type 2 response, mediated by cytokines such as IL-4, IL-5, IL-13, and IL-33. Here, TNF is linked to tuberculosis.