When I choose a tool, and I activate the command, it tells me the error is where I put the tools name. For instance,
/give @p minecraft:diamond_shovel 1 0 {CanDestroy:["minecraft:dirt"],Unbreakable:1}
In this case, it would say there is an error at >"minecraft:diamond_shovel"< I am on switch if that helps at all.