validate_graph()
KeyRuns networkx + pgmpy structural checks: cycles, disconnected treatment/outcome, collider warnings, candidate confounders, post-treatment hazards. The pre-flight before identification.
validate_graph(treatment, outcome, version)→ VALIDATION REPORTCallable over MCP as validate_graph(treatment, outcome, version). REST mirror POST /v1/graph/validate Planned — alpha is MCP-only
Run after structure changes and before identification: cycles, disconnected paths, colliders, candidate confounders the graph may be missing, post-treatment hazards. Cheap to run, and it catches the graph mistakes that silently poison estimates.
Over MCP, your agent invokes it on its own when the moment calls for it — just describe the situation. A Python SDK for headless runtimes is planned; this is what the call will look like.
| Param | Type | Description |
|---|---|---|
| treatment | string | Optional treatment to check connectivity for. |
| outcome | string | Optional outcome to check connectivity for. |
| version | string | Graph version to validate. Default latest. |

