User macro no macro metadata

After creating a macro (plugin) for confluence, I want to have the ability to edit it. When I click on edit page then edit on the macro, I get the error message:

"No Macro Metadata

There is no metadata configured for this macro which means no configuration screen can be presented here.

If this is a user macro then you can add metadata to the template using the User Macro Administration console."

How do I go about configuring metadata for my plugin?

Creating the macro itself is not an issue as it is running fine. After creating the macro though, if I click on edit page then edit on the macro, I get the above error message.