preflight
Validate a dataset's design assumptions before fitting a causal method, returning PASS/WARN/FAIL to surface issues such as overlap, cohort sizes, IV strength, and cutoff density.
Instructions
Run pre-fit identification checks for a chosen method on a DataFrame. Verdict in {PASS, WARN, FAIL}. ALWAYS call this before fitting on an unfamiliar dataset to surface design problems (overlap, cohort sizes, IV first-stage F, running-variable density at the cutoff).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>"
},
"name": "preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y | No | Outcome column. | |
| id | No | Unit id column. | |
| time | No | ||
| cohort | No | ||
| detail | No | Payload depth; agent is the fullest. | agent |
| method | Yes | Estimator name: 'did', 'rd', 'iv', 'synth', 'matching', 'dml', ... | |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| data_csv | No | Small inline table as CSV text. | |
| as_handle | No | Cache the fit and return its result_id. | |
| data_path | No | Absolute path of a data file on the server. | |
| result_id | No | Handle of an earlier fit made with as_handle=true. | |
| treatment | No | ||
| covariates | No | ||
| instrument | No | ||
| running_var | No | ||
| data_records | No | Small inline table as row objects. | |
| max_output_bytes | No | Result byte budget (default 262144; 0 = none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||