Emergency Defense Plan B
Emergency Defense Plan B was a contingency plan that James T. Kirk improvised to repel possible Klingon boarders from the  when they tried to abduct Cyrano Jones. 

The specifics followed a suggestion made by Spock, when asked how to repel the Klingons, who offered that they "throw tribbles at them." Emergency Defense Plan B consisted of just that: throwing tribbles at Klingons. 

The execution of Emergency Defense Plan B involved personnel of the crew of  luring tribbles into the transporters and beaming them into nearly every compartment aboard the Devisor that could hold them, including the engine room and transporter room.

Later, the glommer was also returned to the Klingons, but it proved ineffective with such large numbers of tribbles.

Captain Koloth, upon the successful execution of Emergency Defense Plan B against him, was furious with Kirk, whom he called a "tin-plated, overbearing excuse for a starship captain."

Dr. Leonard McCoy speculated that the Klingons would have to learn how to treat their giant tribbles with neoethylene as he had theirs, and soon, or the Devisor would not be large enough for all of them. ()
Maneuvers