Interesting.
So your "client' tcl script accepts a parameter for the "op"eration. Why not use a seperate script for each action? That seems alot easier to maintain. I have never run into a problem with bulk actions like this.