I know the command for /give so you can have a tool/block that can destroy or be placed on. For my examples, I am going to use a diamond pickaxe and a stone block, but you can use whatever you want.
Destroy: /give @p diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["stone"]}}
Place on: /give @p stone 1 0 {"minecraft:can_place_on":{"blocks":["stone"]}}