Format Conversion
Parse CSV/Excel-CSV/TSV (auto dialect, RFC 4180) into MySQL/PostgreSQL/SQLite/SQL Server INSERT batches with type inference and ON CONFLICT/IGNORE
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/csv-flavor-to-sql-insert-emitter' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"id,name,amount\n1,Alice,99.50\n2,Bob,","dialect":"postgresql","delimiter":"comma","tableName":"orders","nullStyle":"empty","conflictMode":"none","conflictTarget":"e.g. id (for postgres upsert)","batchSize":100,"multiRow":true,"hasHeader":true,"includeSchema":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/csv-flavor-to-sql-insert-emitter| Name | Type | Required | Description |
|---|---|---|---|
| csvInput | textarea | Yes | — |
| dialect | select | No | — |
| delimiter | select | No | — |
| tableName | text | No | — |
| nullStyle | select | No | — |
| conflictMode |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-csv-flavor-to-sql-insert-emitter": {
"name": "csv-flavor-to-sql-insert-emitter",
"description": "Parse CSV/Excel-CSV/TSV (auto dialect, RFC 4180) into MySQL/PostgreSQL/SQLite/SQL Server INSERT batches with type inference and ON CONFLICT/IGNORE",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-flavor-to-sql-insert-emitter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "csv-flavor-to-sql-insert-emitter",
"arguments": {
"csvInput": "id,name,amount\n1,Alice,99.50\n2,Bob,",
"dialect": "postgresql",
"delimiter": "comma",
"tableName": "orders",
"nullStyle": "empty",
"conflictMode": "none",
"conflictTarget": "e.g. id (for postgres upsert)",
"batchSize": 100,
"multiRow": true,
"hasHeader": true,
"includeSchema": false
}
}
}| select |
| No |
| — |
| conflictTarget | text | No | — |
| batchSize | number | No | — |
| multiRow | checkbox | No | — |
| hasHeader | checkbox | No | — |
| includeSchema | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]