util_csv_to_sql
CSV to SQL — Turn a CSV into a ready-to-run SQL script: CREATE TABLE with inferred column types (integer, bigint, exact decimal precision/scale, float, boolean, date, timestamp with or without time zone, sized text) plus batched multi-row INSERTs in one transaction. dialect=postgres (default), mysql, sqlite or mssql with correct identifier quoting and literal escaping; table= name, primaryKey= (checked unique and non-null, otherwise left out with a warning), batch= rows per INSERT, dropIfExists=true, maxRows up to 20000. Column names become safe snake_case, leading-zero codes such as ZIPs stay text, NULL tokens (blank, NA, N/A, null) become NULL, and a primary key is suggested when one fits. Offline. Price: $0.004 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>",
"dialect": "<dialect>"
},
"name": "util_csv_to_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | e.g. id,name,price,in_stock,added 1,Widget,9.99,true,2026-01-05 2,O'Brien Gadget,12.50,false,2026-02-10 | |
| dialect | Yes | e.g. postgres |