# prov.trace.guard_tool

prov.trace.guard_tool in Python SDK. Assess `action` and run `fn` only on `allow`; when Provenance can't answer, pay, send and delete never run, write is blocked and read runs unchecked (`on_unavailable` changes the last two).

## Signature

```python
prov.trace.guard_tool(action: dict, fn: Any, **opts: Any = …) -> Any
```

## Parameters

- `action` (dict)
- `fn` (Any)
- `**opts` (Any, optional)

## Returns

`Any`

Runs locally, with no request to the API.
