Tools for operating on shape messages