I should state that enter some values as variables.
I did another test that set workspace as a parameter. It works in Desktop application. But when the tool is published as a geoprocessing tool, this parameter is filter out. Did you experience like that if you have work on Server geoprocessing tools?