As far as I know there isn't a tag attribute on direct/local routes as these are just logical interfaces within the RIB. The Direct route will be the interface's IP/netmask and the Local route will be the interface's IP/32.
You can however write a routing policy to export direct/local routes so that protocols such as RIP, OSPF, ISIS, etc can advertise and tag those prefixes to their neighbors.