I think you are after buffer polygons. See gmtspatial -S. Not sure if there is an option to trim the half-circle tips.
gmtspatial -S