Can i use parameters with system.alarm.acknowledge and system.alarm.queryStatus?

Hello guys im doing a project on perspective, i have a button to acknowledge the alarm when the button its pressed, i used the alarm path, with not parameters and worked perfectly, but when i used my parameters it didn't work, i don't know why, could you help me please?

there is the code

def runAction(self, event):
   # Obtener parámetros de la vista
    AlarmFolder = self.view.params.AlarmFolder
    AlarmTag = self.view.params.AlarmTag
    
    # Construir el tagPath dinámicamente
    tagPath = "prov:default:/tag:{AlarmFolder}/{AlarmTag}:/alm:AlarmaHH-LL"

    # Consultar el estado de las alarmas filtradas por la ruta del tag
    data = system.alarm.queryStatus(path=[tagPath], status=['ActiveUnacked'])

    # Crear lista de IDs de eventos
    uuidList = [str(row.getId()) for row in data]

    # Comentario opcional al reconocer la alarma
    note = "Acked by Jose"
    
    # Reconocer las alarmas en la lista
    system.alarm.acknowledge(uuidList, note, None)

No, you will need to use python-style string substitution, not curly braces. Like so:

tagPath = "prov:default:/tag:%s/%s:/alm:AlarmaHH-LL" % (AlarmFolder, AlarmTag)
 tagPath = "prov:default:/tag:" + AlarmFolder + "/" + AlarmTag + ":/alm:AlarmaHH-LL"

Hello,this was the solution, thanks for your help man