{"id":"csv-rows-filter-numeric","version":"1.0.0","description":"Filters RFC 4180 CSV rows by an exact column or ratio comparison and returns the complete CSV.","supported_operations":["filter csv by numeric ratio","filter CSV rows by number","keep rows above a threshold","select records by percentage of two columns","compare exact decimal CSV column","filter table where ratio is less than value"],"unsupported_operations":["does not evaluate arbitrary formulas","does not infer CSV dialects"],"semantics":["Parse and serialize RFC 4180 records with CRLF output and a required unique header.","Provide either column alone, or numerator_column and denominator_column together; percentage defaults to false.","Comparisons use exact signed integer decimal arithmetic without rounding.","The header and selected original rows and fields remain byte-value equivalent after RFC 4180 serialization.","Strip one leading UTF-8 BOM before parsing the header."],"limits":{"max_input_bytes":16384,"max_rows":500,"max_columns":40,"max_cell_bytes":256,"max_output_bytes":16384,"max_decimal_digits":100},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"csv":{"type":"string","minLength":1,"maxLength":16384},"column":{"type":"string","minLength":1,"maxLength":64},"numerator_column":{"type":"string","minLength":1,"maxLength":64},"denominator_column":{"type":"string","minLength":1,"maxLength":64},"percentage":{"type":"boolean"},"comparison":{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},"threshold":{"type":"string","minLength":1,"maxLength":64},"empty_policy":{"type":"string","enum":["error","exclude","zero"]},"non_numeric_policy":{"type":"string","enum":["error","exclude","zero"]},"division_by_zero_policy":{"type":"string","enum":["error","exclude","zero"]}},"required":["csv","comparison","threshold","empty_policy","non_numeric_policy","division_by_zero_policy"]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"csv":{"type":"string","maxLength":16384},"rows_in":{"type":"integer","minimum":0,"maximum":500},"rows_out":{"type":"integer","minimum":0,"maximum":500},"standard_version":{"type":"string","const":"RFC 4180 + IEEE 754-2019 4.3"}},"required":["csv","rows_in","rows_out","standard_version"]},"examples":[{"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"},"output":{"csv":"a,note\r\n2,\"x,y\"\r\n","rows_in":2,"rows_out":1,"standard_version":"RFC 4180 + IEEE 754-2019 4.3"}},{"input":{"csv":"a\r\n1\r\n2\r\n","column":"a","comparison":"gte","threshold":"1","empty_policy":"error","non_numeric_policy":"error","division_by_zero_policy":"error"},"output":{"csv":"a\r\n1\r\n2\r\n","rows_in":2,"rows_out":2,"standard_version":"RFC 4180 + IEEE 754-2019 4.3"}}],"execute_url":"/v1/tools/csv-rows-filter-numeric/versions/1.0.0/execute"}