Answer
Wei Yan's primary contribution to the Shu military lay in his exceptional battle performance. As a skilled general, he consistently demonstrated strategic prowess and tactical acumen on the battlefield. His victories and contributions played a significant role in bolstering the Shu forces and securing their position in the Three Kingdoms era.