Fountain pen caps protect the nib and ink from drying too quickly, protect your clothes from ink bleeds, and protect the nib from being damaged from drops.
The clip’s purpose is to protect the pen from rolling on a surface, secure the pen to your shirt pocket, and is a decorative part of the pen.