They were accused of 'spying' for a foreign government.
a 'spy' camera/plane [=a camera/plane used for spying]
a 'spy' novel/thriller [=a novel/thriller about spies]
(..) Whoa! Really? Yes, I have been recruited by a top-secret agency to go undercover and save the world! You're gonna be a spy? That's right, baby! Gru's back in the game. With gadgets and weapons and cool cars. The whole deal. Awesome! (..)2013 Despicable Me 2