There can never be an agreement between two, Hazrat
Quran is right for sure. But pseudo scientists trying to get jinns to make electricity for them are surely retarded. That's the gist of this article, if you bothered to read it.
Suleman (Peace be upon him) he commanded them, and when he passed away these creatures did not dare to disobey his already passed orders all the time his body kept leaning against a stick, they kept even fearing his (peace be upon him) dead body. It was the termite that gave away his death confirmation. And most of the jinn are not Muslim. A treaty between something created from fire and something created from mud is not possible, unless one enslaves the other or the other kills or harms the latter. This disagreement is the main reason why Ibless was declared shaitan e mardood.