util_csv_validate
CSV validate (schema rules) — Validate a CSV against column rules and get every failing cell, offline. schema= is a compact rule list like id:int:required:unique;email:email:required;age:int:min=0:max=120;status:enum=active|inactive;signup:date (regex=... allowed as the last rule) or a JSON object mapping each column name to {type, required, unique, min, max, minLength, maxLength, enum, pattern}. Types: string, int, number, bool, date (YYYY-MM-DD), datetime, email, url, uuid, zip (US 5 or 9 digit), phone (10-15 digits). Rules: required, unique (case-insensitive), min/max (value for numbers, length for text), minlen, maxlen, len, enum (with wrong-case hints), regex. Also catches missing columns, ragged rows, duplicate headers and unexpected columns (strict=1). Without schema= it infers one from the data and checks against it. Returns VALID/INVALID, error counts by column and rule, the first 200 errors with row, value and message, invalid row numbers, and the inferred schema string ready to reuse. Up to 20,000 rows. Price: $0.003 USDC (Base, via x402).
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": {
"csv": "<csv>",
"schema": "<schema>"
},
"name": "util_csv_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | e.g. id,email,age,status 1,ann@example.com,34,active 2,bob@example,17,Active 2,cy@example.com,,paused | |
| schema | Yes | e.g. id:int:required:unique;email:email:required;age:int:required:min=18:max=120;status:enum=active|inactive |