The glutamine degradant levels mediated the causal relationship between HLA DR+ CD4+ %T cells and prostatitis, with a mediation effect of −0.012, accounting for 8.07% of the total. Here, CD4 is linked to prostatitis.