The subject of providing mobile users with an optimized service based on the Service Level Agreement (SLA) in cloud computing environment is one of the controversial issues, because there are a lot of challenging features in this environment such as the heterogeneity of cloud resources and also processing power of mobile phones. In this article, a framework called CSRAM is proposed for optimizing the response quality of services (QoS) in mobile cloud computing systems that tries to increase the precision and speed of the best service selection by offloading part of the computations to the cloud as well as using the context information of service provider in request adaptation process. In the proposed framework, it was tried to design a modular system and also to consider an appropriate algorithm for using in service request adaptation process. Finally, with regarding to seven effective environmental parameters as the inputs and also, with comparison between CSRAM framework and another applied framework, more flexibility was achieved in changing the environmental parameters of the problem, Reduction in the imposed computational load on user’s mobile phone and also, increase in solution precision based on the reality. General Terms Cloud Computing, Mobile Cloud Computing, Service Discovery.