WASHINGTON  The Drug Enforcement Administration has been transformed into a global intelligence organization with a reach that extends far beyond narcotics, and an eavesdropping operation so expansive it has to fend off foreign politicians who want to use it against their political enemies, according to secret diplomatic cables.

In far greater detail than previously seen, the cables, from the cache obtained by WikiLeaks and made available to some news organizations, offer glimpses of drug agents balancing diplomacy and law enforcement in places where it can be hard to tell the politicians from the traffickers, and where drug rings are themselves mini-states whose wealth and violence permit them to run roughshod over struggling governments.

Diplomats recorded unforgettable vignettes from the largely unseen war on drugs:

¶In Panama, an urgent BlackBerry message from the president to the American ambassador demanded that the D.E.A. go after his political enemies: “I need help with tapping phones.”

¶In Sierra Leone, a major cocaine-trafficking prosecution was almost upended by the attorney general’s attempt to solicit $2.5 million in bribes.