As far as I know it is tax payer's responsibility to prepare the capital gains & losses report. It seems to me that that is exactly the reason why they have contacted you.
IRS only has your sell proceeds which were provided to them by your brokerage firm.