Add a client.analyze() method for diagnostics