validate_dataset
Validates clinical datasets against CDISC CORE rules and returns a structured report with pass/fail counts and detailed issues.
Instructions
Validate clinical datasets against CDISC CORE rules.
Runs the CORE Rules Engine CLI against provided dataset files and returns a structured validation report.
Args: dataset_paths: List of paths to XPT, JSON, NDJSON, or XLSX files. standard: CDISC standard to validate against. Options: 'sdtmig', 'sendig', 'adamig', 'tig' version: IG version (e.g., '3-4', '3-3', '3-2', '1-3', '3-1-1') ct_version: Controlled Terminology package (e.g., 'sdtmct-2025-09-26'). Optional. rules: Specific CORE rule IDs to run (e.g., ['CORE-000001']). If None, runs all applicable rules. exclude_rules: CORE rule IDs to skip. define_xml_path: Path to Define-XML file (optional). output_format: Report format — 'JSON' (default) or 'XLSX'.
Returns: Validation report with: - summary: total rules, pass/fail/skip counts, issue summary - issues: detailed issue list with dataset, row, variables, values - rules_report: status of each rule executed - datasets: metadata of validated datasets
Usage: validate_dataset(["/data/ae.xpt", "/data/dm.xpt"]) validate_dataset( ["/data/ae.xpt"], standard="sdtmig", version="3-4", ct_version="sdtmct-2025-09-26" ) validate_dataset( ["/data/ae.xpt"], rules=["CORE-000001", "CORE-000351"] )
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": {
"dataset_paths": "<dataset_paths>"
},
"name": "validate_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | ||
| version | No | 3-4 | |
| standard | No | sdtmig | |
| ct_version | No | ||
| dataset_paths | Yes | ||
| exclude_rules | No | ||
| output_format | No | JSON | |
| define_xml_path | No |