They are intelligence agents. MI5 concerns internal affairs and is equivalent of the Dutch'  AIVD, while MI 6 concerns foreign affairs. MI 6 is the British Secret Service which used to be really secret but its existence was publicly admitted in 1992.