Csv To Sql
csv_to_sqlTurn CSV/TSV into SQL: CREATE TABLE with inferred column types (integer/bigint, numeric, boolean, date, timestamp, varchar/text, NOT NULL where never empty, optional primary key) and batched INSERT statements with correct quoting and escaping for PostgreSQL, MySQL, SQLite or SQL Server. Up to 20,000 rows. POST JSON body {csv, table, dialect}. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/csv-to-sql
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>"
},
"name": "csv_to_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | ||
| table | No | data | |
| header | No | ||
| dialect | No | postgres | |
| batchSize | No | Rows per INSERT statement | |
| delimiter | No | ||
| primaryKey | No | Column to declare as PRIMARY KEY | |
| createTable | No |