validate_data
Check Precis project data against 10 constraint types, including uniqueness, ranges, and foreign keys. Returns row-level errors and a pass/fail summary; read-only, no files modified.
Instructions
Validate Precis project data against all constraint rules (10 types: NotNull, Unique, AllowedValues, Range, ForeignKey, Conditional, Scripted, Charset, DateLogic, Composite). Use it to check data quality or to re-validate data after editing constraint configuration; read-only, it modifies no files. Returns the contract JSON: is_valid (overall pass/fail), errors (one entry per violation, with table name, column name, row number, error_code and details), summary (violation counts); full field definitions in docs/contracts/validate-json-v1.md. Preconditions: manifest points to an existing project.precis.yaml inside the server working directory; a path outside the working directory or a missing file returns an isError result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Validate only this table (schema id or table display name); defaults to validating all tables | |
| manifest | Yes | Absolute path to project.precis.yaml (must be inside the server working directory; paths outside it are rejected) | |
| data_directory | No | Root directory of the data files. Relative data-source paths declared in the schema resolve against this directory; defaults to the directory containing the manifest |