Targeted functionalisation of a hierarchically-structured porous coordination polymer crystal enhances its entire function.