Having parameters in a string may be easier from calling as a URL from javascript, but doesn't provide an intuitive self documenting interface.  Maybe you should change this to an array of structures and call it using ajax?