How to know if a tool is installed as part of a specific System package ?

I need to be sure the tool I want to use from my app is available to any potential end-user… and if not what do they have to install…
lsbom (man lsbom) passing it the path to the package receipt you want to check and piping to a pattern search tool like grep:

lsbom /Library/Receipts/Essentials.pkg/Contents/Resources/Essentials.bom | grep my_tool_name_to_check
or directly using grep on everything in the receipts folder:
grep -rs my_tool_name_to_check /Library/Receipts/
You can use