is 3 defenders, 4 middlefenders, 3 attackers and 1 gp illegal?
Only if none of the players are on the wings.
EDIT: Just read elsewhere that you also have to have two MCs of some sort (DMC, MC, AMC), which, based on the 4 midfielders you listed, you would have two I would think.