CSV Diff by Key
csv_diffCompare two CSV extracts of the same records (before and after, header row first, up to 14,000 characters each and together within the 30,000-byte request) by a key column, or up to 3 key columns together. Get back the rows added, removed and changed (with the key, the line in each file and the names of the columns whose values changed), the count of unchanged rows, and the columns added or removed. Options: columns to ignore (e.g. an updated_at stamp), trim spaces, and compare numbers by value (1.50 = 1.5). Data cell values are never echoed back; only key values and column names are. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/csv-diff). Not legal, tax or financial advice.
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": {
"before": "<before>",
"after": "<after>",
"key": "<key>"
},
"name": "csv_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key column name, or up to 3 names that together identify a row (in both headers). Use a record code (order, invoice, SKU), not a person's name: key values are echoed back. | |
| after | Yes | The newer CSV text, header row first, same delimiter, up to 14,000 characters. | |
| before | Yes | The older CSV text, header row first (RFC 4180), up to 14,000 characters. Do not send personal data (names of people, emails, phone, Social Security, card or account numbers): columns named for it and cells shaped like it are refused, but names in cells cannot be detected. | |
| delimiter | No | Field separator for both files: comma (default, RFC 4180), semicolon, tab or pipe. | comma |
| trim_spaces | No | true: spaces, tabs and line breaks at either end of every cell (keys too) are ignored. Default false: they count (RFC 4180 rule 4). | |
| ignore_columns | No | Columns not to compare (up to 50), e.g. a last-modified stamp. | |
| numbers_by_value | No | true: two cells that are both XSD decimals (12, -3.50, +.5; spaces at either end ignored, as XSD whiteSpace collapse) are equal when their values are equal (1.50 = 1.5 = 01.5). Default false: text compared exactly. |