Dataparity

v0.3.0
io.github.arif-js/dataparity Checked 13 hours ago Published 13 days ago

Cross-database data diff and reconciliation for AI agents, with a portable row hash

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dataparity_list_sources

List the configured data sources that can be diffed. Returns each source name, engine type and label.

dataparity_list_tables

List table names in a configured source. Use this to find candidate tables, then call dataparity_describe_table when you need column names, types, or nullability before choosing diff keys.

ParameterTypeDescription
source *stringThe configured source name.
schemastringOptional schema to restrict the listing to.

dataparity_describe_table

Return detailed metadata for one table, including each column name, type, and nullability. Use this after dataparity_list_tables to choose key and comparison columns.

ParameterTypeDescription
source *stringThe configured source name.
table *stringThe table name, optionally schema-qualified.

dataparity_diff_tables

Compare two tables and report what changed. Works across different databases: both sides compute the same canonical row hash, so only hashes are compared, never raw data. Returns added, removed and modified rows, schema differences, a risk verdict, and the segments of data where the changes concentrate.

ParameterTypeDescription
key_columns *arrayColumns used to match rows across the two sides.
left *stringThe left source name.
left_table *stringThe table on the left.
right *stringThe right source name.
right_table *stringThe table on the right.
columnsarrayColumns to compare. Defaults to every column the two tables share.
formatstringOutput format. Defaults to json.
max_attributionsnumberMaximum number of attribution segments to return. Defaults to 5.
max_changesnumberMaximum number of row changes to return. Defaults to 100.
samplebooleanCompare only a sample of rows. The result is marked as sampled.
wherestringA WHERE expression applied to both sides.

dataparity_list_diff_runs

List recent saved diff runs, newest first. Successful dataparity_diff_tables calls are saved locally; use dataparity_get_diff_run to retrieve a full report.

ParameterTypeDescription
limitintegerMaximum number of runs to return (1-100, default 20).

dataparity_get_diff_run

Retrieve a previously saved full diff report by the run id returned from dataparity_diff_tables or dataparity_list_diff_runs.

ParameterTypeDescription
run_id *stringSaved diff run id.

dataparity_delete_diff_run

Permanently delete a saved diff report from local history by run id.

ParameterTypeDescription
run_id *stringSaved diff run id.

dataparity_create_baseline

Capture a named baseline for a configured table. The local store keeps schema and bucket-level canonical hashes, not table row values. A later dataparity_compare_baseline checks for data or schema drift.

ParameterTypeDescription
key_columns *arrayColumns that identify rows and determine fingerprint buckets.
name *stringUnique name for this baseline.
source *stringConfigured source name.
table *stringTable name, optionally schema-qualified.

dataparity_list_baselines

List saved table baselines, optionally filtered by configured source.

ParameterTypeDescription
sourcestringOptional configured source name.

dataparity_compare_baseline

Compare a configured table with a saved baseline for the same source and table. Returns schema differences and changed hash buckets; use dataparity_diff_tables for row-level details against a live table.

ParameterTypeDescription
name *stringSaved baseline name.
source *stringConfigured source name.
table *stringTable name, optionally schema-qualified.

dataparity_delete_baseline

Permanently delete a saved table baseline by name.

ParameterTypeDescription
name *stringSaved baseline name.