Validate model
layerz_validate_modelAudit a model without writing: runs the core model validator (structural / formula / timeline checks) and returns a structured report { ok, error_count, warning_count, errors[], warnings[] }. This is NOT a byte-for-byte preview of a write: the write path auto-repairs some of these (e.g. it strips a dangling source_uid/inputs instead of refusing) and enforces a few invariants this audit does not (e.g. a dangling parent_uid is rejected only at write), so ok:true is a sanity signal, not a guarantee the next write succeeds. Each issue carries a category code (e.g. UNKNOWN_UID = dangling ref, CIRCULAR_DEPENDENCY, INVALID_ROLE_CHILD = misplaced chart/kpi/mini_table, TIMELINE_MISMATCH) + message + item_uids. Read-only — use it as an agent-side sanity check before sharing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. |