**Category:** Algebra  
**Subtype:** Polynomial Functions  
**Problem Description:** Find the real value of the parameter \(m\) such that the function \(y=\frac{1}{3} x^{3}-m x^{2}+\left(m^{2}-4\right) x+3\) has a maximum at \(x=3\).