Towards microscopic control of the magnetic exchange coupling at the surface of a topological insulator