refine the cli of tools