reconcile
Verify an output table against its source table by comparing row counts, key coverage, duplicate keys, and column totals with tolerance; returns pass/fail and anomaly fix hints.
Instructions
Check that an output table adds up against the input it was built from.
Read-only: compares target with source on the configured connection
and saves nothing. Always compares row counts. With key_columns (unique
in the target; several for a composite key) it also counts keys repeated
in the target (a join that fans out), source keys missing from the target
and target keys the source lacks. With sum_columns it compares each
column's total, which may differ by at most tolerance (absolute).
Returns counts and totals only, never a key value; passed is false on
any mismatch, each a CRITICAL anomaly with a fix hint. Both tables must
be listed by list_tables.
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": {
"source": "<source>",
"target": "<target>"
},
"name": "reconcile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| tolerance | No | ||
| key_columns | No | ||
| sum_columns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||