How do I give myself blocks that can only be placed on red wool? [duplicate]

All wool blocks use the minecraft:wool tag. Does anyone know how a solution?

So far I only have this:

/give @a minecraft:stained_hardened_clay 5 9 {CanPlaceOn:["minecraft:wool"]}

Here is the command you need to write.

/give @a minecraft:stained_hardened_clay 5 9 {CanPlaceOn:["minecraft:red_wool"]}

Or writing it in 1.13+ looks like:

/give @a stained_hardened_clay{CanPlaceOn:["minecraft:red_wool"]}

I saw a comment that said you needed to write it like 59 with no space, that is incorrect you need the space, so when you write it would look like this: 5 9.