I would like to create the model or script to inser the URL of Map service and then it will make the layer on my table of content. It is like a "Make image server layer" toolbox. But different service type
Thank you for advance,
Well, the normal way to do it is to create a GIS Server connection via ArcCatalog.
Then in ArcMap you can navigate to that connection and add any service just like a normal layer / dataset.
But as you are posting this in "Developers", I guess you want some sort of programmatic solution.