Any opening of proprietary chat to useful tools will be used for spam too. It is a curse.
A harder version of the clause, that only a specific interface be used, might be contrary to Free Software howeer, as it would infringe in the right to modify (the interface), but not the right to study the software.