Format Conversion
Genere des INSERT SQL depuis Excel
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/xlsx-sql-insert-generator' \
-F 'file=@/path/to/excelFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/xlsx-sql-insert-generator' \
-F 'excelFile=/public/samples/xlsx/workbook-sales.xlsx' \
-F 'tableName=sales_records' \
-F 'sheetName=Sheet1' \
-F 'headerRow=1' \
-F 'selectedColumns=id,name,amount' \
-F 'dialect=postgresql' \
-F 'useBatchInsert=true' \
-F 'batchSize=500' \
-F 'nullForEmpty=true' \
-F 'terminateWithSemicolon=true'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/xlsx-sql-insert-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| excelFile | fileupload requis | Oui | — |
| tableName | text | Oui | — |
| sheetName | text | Non | — |
| headerRow | number | Non | — |
| selectedColumns | text | Non | — |
| dialect | select | Non | — |
| useBatchInsert | checkbox | Non | — |
| batchSize | number | Non | — |
| nullForEmpty | checkbox | Non | — |
| terminateWithSemicolon | checkbox | Non | — |
Résultat fichier
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-xlsx-sql-insert-generator": {
"name": "xlsx-sql-insert-generator",
"description": "Genere des INSERT SQL depuis Excel",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-sql-insert-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "xlsx-sql-insert-generator",
"arguments": {
"excelFile": "/public/samples/xlsx/workbook-sales.xlsx",
"tableName": "sales_records",
"sheetName": "Sheet1",
"headerRow": 1,
"selectedColumns": "id,name,amount",
"dialect": "postgresql",
"useBatchInsert": true,
"batchSize": 500,
"nullForEmpty": true,
"terminateWithSemicolon": true
}
}
}Des questions ou un problème ? Contactez [email protected]