Check the plan against the data
validate_planChecks the plan against the rows: is each key unique, non-null, how many references find no target (orphans). Requires workspace and source; keys, confirmed as in plan_backend. Returns JSON counts, no row values: failing checks in full, passing as totals. Read-only. create_backend does not run it. Errors: {error, kind, hint}.
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": {
"workspace": "<workspace>",
"source": "<source>"
},
"name": "validate_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Primary keys replacing the inferred ones. Default: inferred. Example: {"order_items": ["order_id", "line_no"]}. | |
| fixes | No | true: a fix per finding; applies nothing. | |
| detail | No | "summary" (default) or "full" (every check). | summary |
| review | No | With fixes: a review_plan file. | |
| schema | No | Schema in the source. Default "dbo". | dbo |
| source | Yes | Lakehouse, warehouse or SQL database, name or id. | |
| tables | No | Table names or globs to show. Default all. Example: ["sales_*"]. | |
| profile | No | true adds per column of the checked tables: NULL share, distinct count, number min/max below/above zero; {"numbers": [lo, hi], "dates": [from, to]} states ranges. One query per table within max_items; never values. Default false. | |
| sql_sums | No | true also reads the SQL views' definitions (no rows) and lists views that SUM a header amount after joining its line table, and views it could not read. Default false. | |
| confirmed | No | Relationships the user confirmed, added to the plan. Default none. Example: [{"source": "orders", "source_cols": ["ship_to_id"], "target": "addresses", "target_cols": ["address_id"]}]. | |
| max_items | No | Cap on counting queries (one per key and relationship), 1–200. Default 60. | |
| workspace | Yes | Fabric workspace, name or id. |