Add numArgs validation in all API functions