Data Processing
Infiere un schema relacional desde CSV y genera planes CREATE TABLE y ALTER para PostgreSQL, MySQL, SQLite o SQL Server
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/csv-to-database-migration-planner' \
-F 'file=@/path/to/csvFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/csv-to-database-migration-planner' \
-F 'csvInput=id,customer_id,email,total,created_at,status
1,10,[email protected],120.50,2026-04-05,paid
2,11,[email protected],40.00,2026-04-06,pending' \
-F 'csvFile=' \
-F 'tableName=customer_orders' \
-F 'targetDatabase=postgresql' \
-F 'existingSchema=CREATE TABLE customer_orders (
id INTEGER PRIMARY KEY
);' \
-F 'schemaOverrides={"status":"VARCHAR(32)","customer_id":{"type":"BIGINT","index":true}}' \
-F 'generateAlterPlan=true'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/csv-to-database-migration-planner| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| csvInput | textarea | No | — |
| csvFile | filesubida requerida | No | — |
| tableName | text | No | — |
| targetDatabase | select | No | — |
| existingSchema | textarea | No | — |
| schemaOverrides | textarea | No | — |
| generateAlterPlan | checkbox | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-csv-to-database-migration-planner": {
"name": "csv-to-database-migration-planner",
"description": "Infiere un schema relacional desde CSV y genera planes CREATE TABLE y ALTER para PostgreSQL, MySQL, SQLite o SQL Server",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-to-database-migration-planner",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "csv-to-database-migration-planner",
"arguments": {
"csvInput": "id,customer_id,email,total,created_at,status\n1,10,[email protected],120.50,2026-04-05,paid\n2,11,[email protected],40.00,2026-04-06,pending",
"csvFile": "",
"tableName": "customer_orders",
"targetDatabase": "postgresql",
"existingSchema": "CREATE TABLE customer_orders (\n id INTEGER PRIMARY KEY\n);",
"schemaOverrides": "{\"status\":\"VARCHAR(32)\",\"customer_id\":{\"type\":\"BIGINT\",\"index\":true}}",
"generateAlterPlan": true
}
}
}¿Dudas o problemas? Contacta con [email protected]