If the messages dynamic variable isn’t available in your AnalysisPlan, you might want to tap into the conversation’s raw event logs or webhook payload instead. For API, SMS, and callTransfer tools, you can check the tool invocation records in the call session data (usually under tools or steps arrays) — those will indicate both that the tool was triggered and its status or success flag.
Another option is to push tool execution results into a custom variable during runtime, so your AnalysisPlan can reference that instead of messages.