A city’s transport and distribution system requires the effective organization of urban freight deliveries that take into consideration the economic, ecological, and social impact. Implementation of the concept of green logistics necessitates the use of environmentally friendly and energy-efficient modes of transport, which consider the existing infrastructure and the possibility of its development. The aim of this work was to facilitate the transfer to rail transport, using the existing tramway infrastructure, those shipments which previously entered the city center by road. The paper proposes a simulation model for small consignments delivered by freight trams in the city of Poznań, Poland. Operational planning is carried out in conditions of uncertainty and risk. The uncertainty is due to the stochastic nature of the demand for products. The risk is characterized by the probability that, due to technological and technical limitations, a given customer will not be fully served from the distribution center. The authors provide a decision support tool for evaluating the possible locations of tram depots and for route planning. The assignment of the routes, with the criterion of minimizing the costs for the carrier, and with a limitation on tram operating time, is based on the use of genetic algorithms, which makes it possible to obtain a solution that is close to optimal, within a reasonable time period. As a result of a series of simulation experiments and statistical data processing, the distribution laws and expected average values of the technological parameters were determined for the functioning of the city transport and distribution system under conditions of uncertainty and risk.