A shape grammar was developed for analyzing the evolution of Maputo´s slums with the strategic objective of capturing the evolution of house types and understanding the social agreements behind the spatial relations of their house elementary spaces in order to reuse such rules for the purpose of rehabilitation. This paper shows preliminary results of the research and aims at developing, based on the resulting grammars, a parametric tool able to execute morphological analyses, simulations and generate improved design solutions for the qualification of Maputo´s informal settlements.