def METHOD_NAME(self, context, agentname, *params):
    "usage: validate [<class>:[<provider>:]]<type> [<key>=<value> ...]"
    rc, _ = ra.validate_agent(agentname, dict([param.split('=', 1) for param in params]), log=True)
    return rc == 0