The Flex-Algos associated with the local prefix SIDs of a device as well as the FADs on the device all need to be advertised through IS-IS.
Each device can use an IGP to advertise their supported Flex-Algos and the related calculation rules through the FAD Sub-TLV.
These Flex-Algos can be associated with prefix SIDs during prefix SID configuration. The IGP can then advertise the Flex-Algos and prefix SIDs through the Prefix-SID Sub-TLV.