Data Processing
Add headers to CSV data that lacks column names. Perfect for data import from databases, API responses, or numeric datasets that need proper column identification. Features: - Add custom headers to header-less data - Auto-generate intelligent headers - Support for various header naming conventions - Preview headers before applying - Multiple header format options - Support for existing data detection - Batch processing capabilities Common Use Cases: - Fix database exports without headers - Process API response data - Prepare numeric datasets for analysis - Standardize data column naming - Create proper CSV structures - Data format normalization
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/header-adder' \
-H 'Content-Type: application/json' \
-d '{"csvContent":"Paste your CSV content here...\nExample (without headers):\nJohn,25,New York,Engineer\nJane,30,Los Angeles,Designer\nBob,35,Chicago,Manager","headerMode":"auto","customHeaders":"Name,Age,City,Position","separator":"comma","autoPrefix":"Column","previewOnly":false,"outputFormat":"csv"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/header-adder| Name | Type | Required | Description |
|---|---|---|---|
| csvContent | textarea | Yes | — |
| headerMode | select | Yes | — |
| customHeaders | text | No | Enter headers separated by commas. Only used when Custom Headers mode is selected. |
| separator | select | Yes | — |
| autoPrefix | text | No | Prefix for auto-generated headers (e.g., Column, Field, Data). Used in Auto and Template modes. |
| previewOnly | checkbox | No | Only show the generated headers without modifying the data |
| outputFormat | select | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-header-adder": {
"name": "header-adder",
"description": "Add headers to CSV data that lacks column names. Perfect for data import from databases, API responses, or numeric datasets that need proper column identification.\n\nFeatures:\n- Add custom headers to header-less data\n- Auto-generate intelligent headers\n- Support for various header naming conventions\n- Preview headers before applying\n- Multiple header format options\n- Support for existing data detection\n- Batch processing capabilities\n\nCommon Use Cases:\n- Fix database exports without headers\n- Process API response data\n- Prepare numeric datasets for analysis\n- Standardize data column naming\n- Create proper CSV structures\n- Data format normalization",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=header-adder",
"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": "header-adder",
"arguments": {
"csvContent": "Paste your CSV content here...\nExample (without headers):\nJohn,25,New York,Engineer\nJane,30,Los Angeles,Designer\nBob,35,Chicago,Manager",
"headerMode": "auto",
"customHeaders": "Name,Age,City,Position",
"separator": "comma",
"autoPrefix": "Column",
"previewOnly": false,
"outputFormat": "csv"
}
}
}Questions or issues? Contact [email protected]