CSV anti join
csv-anti-join · version 1.0.0 · CSV & tables · free, no key needed
Keep left CSV rows whose exact key tuples do not appear in the right document.
Use when you need to: csv anti join · keep unmatched left csv rows · csv rows absent from right keys.
Decide before calling
Read the versioned contract and the supported scope below. Reuse csv-anti-join@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 csv-anti-join@1.0.0 for csv anti join. 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
- csv anti join
- keep unmatched left csv rows
- csv rows absent from right keys
Not supported
- inner join
- left join
- outer join
- fuzzy keys
- numeric keys
- suffix collision renaming
- read files
- fetch urls
Behavior
- keys names unique existing headers on both sides; equality uses exact string tuples with no trimming, case folding, or type coercion.
- Output CSV uses left headers and left cells only, in original left data-row order.
- Duplicate left keys are kept when unmatched; duplicate right keys only populate the set of right key tuples.
- Empty documents without headers are rejected. Header-only right keeps every left data row. Header-only left yields header-only output.
- rows_in is the number of left data rows; rows_out is the number of unmatched left data rows kept.
- The first left header name may not begin with U+FEFF because it is ambiguous with a CSV byte-order mark.
Input
left(string, required): max length 256000right(string, required): max length 256000keys(array of string, required): min items 1; max items 32; each min length 1
Output
csv(string, required): max length 256000rows_in(integer, required)rows_out(integer, required)
Limits
- max input bytes: 256000
- max data rows: 5000
- max columns: 256
- max header name bytes: 256
- max keys: 32
- max output bytes: 256000
Example
Request input:
{
"left": "id,name\n1,Ada\n2,Lin\n3,Grace\n",
"right": "id,city\n2,London\n4,Paris\n",
"keys": [
"id"
]
}
Response:
{
"result": {
"csv": "id,name\n1,Ada\n3,Grace\n",
"rows_in": 3,
"rows_out": 2
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "csv-anti-join",
"version": "1.0.0",
"input": {
"left": "id,name\n1,Ada\n2,Lin\n3,Grace\n",
"right": "id,city\n2,London\n4,Paris\n",
"keys": [
"id"
]
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/csv-anti-join/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"left":"id,name\n1,Ada\n2,Lin\n3,Grace\n","right":"id,city\n2,London\n4,Paris\n","keys":["id"]}'
The machine-readable contract is at /v1/tools/csv-anti-join/versions/1.0.0.
CLI
node cli.mjs run csv-anti-join 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Table join count check: Check a claimed inner, left, right or full equi-join row count over two JSON tables by key multiplicities.
- CSV left join: Left join two CSV documents on exact named key columns.
- CSV dialect format: Format string rows as CSV for an explicit dialect, quoting a one-field empty record when it can.
- CSV filter compare: Filter ASCII CSV rows by string/decimal comparison; requires CRLF records, rejects LF-only and non-ASCII input.
- CSV filter pattern literal: Filter ASCII CSV with literal contains/starts-with; requires CRLF records, rejects LF-only and non-ASCII input.
- CSV inner join: Inner join two CSV documents on exact named key columns.