I create own plugins with their own tables and actions. In these plugins I didn't make use of custom plugins. 

However I want to define custom capabilities and roles. I want to base them on the action(url parameter). 

Is this possible?