To make this recipe gluten-free, substitute the anelli pasta with a gluten-free alternative, such as gluten-free ditalini or small elbow pasta. Ensure the tomato sauce and other ingredients are certified gluten-free to avoid any potential cross-contamination.