Retrieval of data using mobile agents has gained popularity, due to the advancements in mobile computing techniques. However, the transmission of wireless communication is still unreliable and bandwidth-limited. This paper investigates this issue and tries to find the most suitable location for a mobile agent in a vast network. The authors first propose a mechanism and operations in support of this strategy. Then, they develop an analysis model to estimate the optimal location for a mobile agent. Their experimental results show that at an optimal location, about 27% - 116% of communication cost can be saved.