Mr. Wray's visit ostensibly aimed to investigate corruption within the dockyard, a task that Maturin believed he might handle more effectively than the complexities of counter-espionage. Intelligence work often requires specialized knowledge, and this was Wray's first involvement in such matters, which raised doubts about his capability in that field.
In contrast, corruption was a more accessible issue, experienced universally across various levels. Given Wray's background, having maintained a lavish lifestyle on a meager official salary, he likely possessed a keen understanding of the nuances of corruption, making him well-suited for this investigation.