Table reconciliation check

table-reconciliation-check · version 1.0.0 · CSV & tables · free, no key needed

Check a claimed keyed reconciliation of two JSON tables and per-key statuses; report the first wrong key or count.

Use when you need to: verify a reconciliation summary between two tables · check claimed added removed and changed record counts · validate per key reconciliation statuses.

Decide before calling

Read the versioned contract and the supported scope below. Reuse table-reconciliation-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use table-reconciliation-check@1.0.0 for verify a reconciliation summary between two tables. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "left": [
    {
      "id": 1,
      "v": "a"
    },
    {
      "id": 2,
      "v": "b"
    },
    {
      "id": 3,
      "v": "c"
    }
  ],
  "right": [
    {
      "id": 1,
      "v": "a"
    },
    {
      "id": 2,
      "v": "B"
    },
    {
      "id": 4,
      "v": "d"
    }
  ],
  "key_columns": [
    "id"
  ],
  "compare_columns": [
    "v"
  ],
  "claimed_counts": {
    "unchanged": "1",
    "changed": "1",
    "left_only": "1",
    "right_only": "1",
    "ambiguous_keys": "0",
    "left_null_key_rows": "0",
    "right_null_key_rows": "0"
  }
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "first_discrepancy": null,
    "counts": {
      "unchanged": "1",
      "changed": "1",
      "left_only": "1",
      "right_only": "1",
      "ambiguous_keys": "0",
      "left_null_key_rows": "0",
      "right_null_key_rows": "0"
    },
    "reference_version": "r59-reconciliation-1.0.0 (ISO/IEC 9075-2:2023 null and distinct predicate semantics; JSON-row profile 1)"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "table-reconciliation-check",
  "version": "1.0.0",
  "input": {
    "left": [
      {
        "id": 1,
        "v": "a"
      },
      {
        "id": 2,
        "v": "b"
      },
      {
        "id": 3,
        "v": "c"
      }
    ],
    "right": [
      {
        "id": 1,
        "v": "a"
      },
      {
        "id": 2,
        "v": "B"
      },
      {
        "id": 4,
        "v": "d"
      }
    ],
    "key_columns": [
      "id"
    ],
    "compare_columns": [
      "v"
    ],
    "claimed_counts": {
      "unchanged": "1",
      "changed": "1",
      "left_only": "1",
      "right_only": "1",
      "ambiguous_keys": "0",
      "left_null_key_rows": "0",
      "right_null_key_rows": "0"
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/table-reconciliation-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"left":[{"id":1,"v":"a"},{"id":2,"v":"b"},{"id":3,"v":"c"}],"right":[{"id":1,"v":"a"},{"id":2,"v":"B"},{"id":4,"v":"d"}],"key_columns":["id"],"compare_columns":["v"],"claimed_counts":{"unchanged":"1","changed":"1","left_only":"1","right_only":"1","ambiguous_keys":"0","left_null_key_rows":"0","right_null_key_rows":"0"}}'

The machine-readable contract is at /v1/tools/table-reconciliation-check/versions/1.0.0.

CLI

node cli.mjs run table-reconciliation-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.