Custom module with connection via TCP API. No files transfered.

Hi

I’d like to develop custom module that will configure remote network device (MikroTik) via API (TCP). I know that I need a connection plugin and a module for specific task.
If I add with_items to my module, will it be run for every item in item list ? I need my module to take a list of dicts once and configure the device.
Module needs to operate on a connection and it does not transfer files. This is totally different than what ansible does by default. How to do it ?