added global intent and radius in the endpoint