Data Processing
Filter CSV data by column values with multiple conditions and operators. Supports 12 filter operators including equals, contains, greater_than, less_than, and empty value checks. Additional Filters examples: [{"column": "age", "operator": "greater_than", "value": "25"}] [{"column": "status", "operator": "equals", "value": "active"}, {"column": "score", "operator": "greater_equal", "value": "80"}] [{"column": "name", "operator": "contains", "value": "john"}, {"column": "email", "operator": "is_not_empty"}]
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/csv-filter' \
-F 'file=@/path/to/csvFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/csv-filter' \
-F 'csvFile=/path/to/file.ext' \
-F 'filterColumn=Column name to filter on' \
-F 'filterOperator=equals' \
-F 'filterValue=Value to filter by (leave empty for is_empty/is_not_empty)' \
-F 'additionalFilters=Examples:
[{"column": "age", "operator": "greater_than", "value": "25"}]
[{"column": "status", "operator": "equals", "value": "active"}, {"column": "score", "operator": "greater_equal", "value": "80"}]
[{"column": "name", "operator": "contains", "value": "john"}, {"column": "email", "operator": "is_not_empty"}]' \
-F 'outputFormat=csv' \
-F 'includeHeader=true' \
-F 'caseSensitive=false' \
-F 'trimValues=true'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-filter| Name | Type | Required | Description |
|---|---|---|---|
| csvFile | fileupload required | Yes | — |
| filterColumn | text | Yes | — |
| filterOperator | select | No | — |
| filterValue | text | No | — |
| additionalFilters | textarea | No | — |
| outputFormat | select | No | — |
| includeHeader | checkbox | No | — |
| caseSensitive | checkbox | No | — |
| trimValues | checkbox | No | — |
File result
{
"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)"
}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-filter": {
"name": "csv-filter",
"description": "Filter CSV data by column values with multiple conditions and operators. Supports 12 filter operators including equals, contains, greater_than, less_than, and empty value checks.\n\nAdditional Filters examples:\n[{\"column\": \"age\", \"operator\": \"greater_than\", \"value\": \"25\"}]\n[{\"column\": \"status\", \"operator\": \"equals\", \"value\": \"active\"}, {\"column\": \"score\", \"operator\": \"greater_equal\", \"value\": \"80\"}]\n[{\"column\": \"name\", \"operator\": \"contains\", \"value\": \"john\"}, {\"column\": \"email\", \"operator\": \"is_not_empty\"}]",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-filter",
"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-filter",
"arguments": {
"csvFile": "https://example.com/file.ext",
"filterColumn": "Column name to filter on",
"filterOperator": "equals",
"filterValue": "Value to filter by (leave empty for is_empty/is_not_empty)",
"additionalFilters": "Examples:\n[{\"column\": \"age\", \"operator\": \"greater_than\", \"value\": \"25\"}]\n[{\"column\": \"status\", \"operator\": \"equals\", \"value\": \"active\"}, {\"column\": \"score\", \"operator\": \"greater_equal\", \"value\": \"80\"}]\n[{\"column\": \"name\", \"operator\": \"contains\", \"value\": \"john\"}, {\"column\": \"email\", \"operator\": \"is_not_empty\"}]",
"outputFormat": "csv",
"includeHeader": true,
"caseSensitive": false,
"trimValues": true
}
}
}Questions or issues? Contact [email protected]