The help page on BGP refers to the draft-ietf-idr-bgp-open-policy for details on the local.role attribute. This draft later became RFC 9234, which not only defines the roles (and their compatibility matrix and its checking on connection establishment), but also (and more importantly) the Only-To-Customer attribute that could prevent route leaks.
Now while RFC 9234 isn’t listed in the “Standards and Technologies” section of that help page, one might assume that Mikrotik implements this standard (or rather its draft). However, according to my tests, this is not the case! RouterOS does neither set, check nor even display the OTC attribute. This is a bit disappointing, and frankly dangerous! From the current state of documentation, one might reasonably assume RFC 9234 support and not configure additional filtering, leaking routes freely.
Please, Mikrotik, implement proper OTC support in RouterOS!