Fixed agent get parameters logic to exclude aparam_get functions