Function processRequestWithRegisteredTools