CSV rows filter numeric

csv-rows-filter-numeric · version 1.0.0 · CSV & tables · free, no key needed

Filters RFC 4180 CSV rows by an exact column or ratio comparison and returns the complete CSV.

Use when you need to: filter csv by numeric ratio · filter CSV rows by number · keep rows above a threshold.

Decide before calling

Read the versioned contract and the supported scope below. Reuse csv-rows-filter-numeric@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-rows-filter-numeric@1.0.0 for filter csv by numeric ratio. 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:

{
  "csv": "a,note\r\n2,\"x,y\"\r\n0,z\r\n",
  "column": "a",
  "comparison": "gt",
  "threshold": "1",
  "empty_policy": "error",
  "non_numeric_policy": "error",
  "division_by_zero_policy": "error"
}

Response:

{
  "result": {
    "csv": "a,note\r\n2,\"x,y\"\r\n",
    "rows_in": 2,
    "rows_out": 1,
    "standard_version": "RFC 4180 + IEEE 754-2019 4.3"
  }
}

How to call it

MCP

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

{
  "id": "csv-rows-filter-numeric",
  "version": "1.0.0",
  "input": {
    "csv": "a,note\r\n2,\"x,y\"\r\n0,z\r\n",
    "column": "a",
    "comparison": "gt",
    "threshold": "1",
    "empty_policy": "error",
    "non_numeric_policy": "error",
    "division_by_zero_policy": "error"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/csv-rows-filter-numeric/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"csv":"a,note\r\n2,\"x,y\"\r\n0,z\r\n","column":"a","comparison":"gt","threshold":"1","empty_policy":"error","non_numeric_policy":"error","division_by_zero_policy":"error"}'

The machine-readable contract is at /v1/tools/csv-rows-filter-numeric/versions/1.0.0.

CLI

node cli.mjs run csv-rows-filter-numeric 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.