Move params value decoding to tool_connect.py