Given:
\[
\text{Volume of HCl} = 200 \, \text{mL} = 0.2 \, \text{L}, \quad \text{Molarity of HCl} = 0.5 \, \text{M}, \quad \text{Molar mass of } \mathrm{CaCO}_3 = 100 \, \text{g/mol}
\]
Step 1: Calculate Moles of HCl
Moles of HCl = Molarity \(\times\) Volume (in liters):
\[
\text{Moles of HCl} = 0.5 \cdot 0.2 = 0.1 \, \text{mol}
\]
Step 2: Use Stoichiometry
From the reaction, 1 mole of \(\mathrm{CaCO}_3\) neutralizes 2 moles of HCl. Thus, moles of \(\mathrm{CaCO}_3\) required:
\[
\text{Moles of } \mathrm{CaCO}_3 = \frac{\text{Moles of HCl}}{2} = \frac{0.1}{2} = 0.05 \, \text{mol}
\]
Step 3: Calculate Mass of \(\mathrm{CaCO}_3\)
Mass = Moles \(\times\) Molar mass:
\[
\text{Mass of } \mathrm{CaCO}_3 = 0.05 \cdot 100 = 5.0 \, \text{g}
\]
Thus, the mass required is:
\[
\boxed{5.0 \, \text{g}}
\]