The lifespan of wireless sensors networks (WSN) is entirely dependent on the energy level in sensors. To reduce the energy consumption, the traffic exchange between sensor nodes must be reduced in order to preserve the remaining energy. To reduce the network traffic overhead and prolong the lifespan of the network, we can use mobile agents to gather data from source nodes. However, this solution can be expensive in terms of delivery latency. For that we propose a new energy protocol named Energy Efficient Clustering with Mobile Agents (EECMA) based on combining the two paradigms of client/server and mobile agent to achieve the trade-off between increasing the network lifetime and reducing the data delivery latency. Furthermore, we expose a multidimensional model to process incoming data from sinks in order to enhance the overall performance of our system.