Currently, crm_resource --show-metadata dumps the raw XML from the agent's meta-data command.
From https://github.com/ClusterLabs/pacemaker/pull/3311#discussion_r1449393838:
It would be cool to have readable text output for agent metadata (like "Parameters: ...."). But the XML output will always need a CDATA block because we can't define an API schema for externally generated XML. Then again someone might want the raw XML metadata -- I suppose we could keep that as the default text output and finally make use of the --text-fancy option to show it in a readable way.