Methylene blue indicates the presence of oxidizing agents because it is oxidized itself by these compounds. When electrons are stripped from methylene blue, the resulting molecule imparts a blue color to the solution--giving a clear sign of a chemical change.