Is there a way to expose the operation type (apply/destroy) to an external data provider

I have an external data script which I’m using to gather environment data not available from the current provider ecosystem. It performs environment error checking intended for applies, which often false-alerts on destroy. Is there a way to pass the Terraform operation type to the external data script so it can better handle environment error checking?