Data Processing
Calculate the coefficient of variation (CV) for numerical columns to measure relative variability
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/coefficient-of-variation' \
-H 'Content-Type: application/json' \
-d '{"csvData":"Enter your CSV data here...\n\nExample:\nProduct,Sales_Amount,Sales_Quantity,Profit,Price\nA,1500.50,120,450.25,12.50\nB,2300.75,180,690.20,12.80\nC,890.25,95,267.15,9.35\nD,3200.00,210,960.50,15.25\nE,1750.80,155,525.30,11.30","selectedColumns":"Comma-separated column names. Leave empty to auto-detect numeric columns.","hasHeader":true,"includeInterpretation":true,"outputFormat":"report"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/coefficient-of-variation| Name | Type | Required | Description |
|---|---|---|---|
| csvData | textarea | Yes | — |
| selectedColumns | text | No | Specify which columns to analyze. If empty, all numeric columns will be automatically detected and analyzed. |
| hasHeader | checkbox | No | Treat first row as column headers |
| includeInterpretation | checkbox | No | Include interpretation of CV values (low, medium, high variability) |
| outputFormat | select | Yes |
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-coefficient-of-variation": {
"name": "coefficient-of-variation",
"description": "Calculate the coefficient of variation (CV) for numerical columns to measure relative variability",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=coefficient-of-variation",
"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": "coefficient-of-variation",
"arguments": {
"csvData": "Enter your CSV data here...\n\nExample:\nProduct,Sales_Amount,Sales_Quantity,Profit,Price\nA,1500.50,120,450.25,12.50\nB,2300.75,180,690.20,12.80\nC,890.25,95,267.15,9.35\nD,3200.00,210,960.50,15.25\nE,1750.80,155,525.30,11.30",
"selectedColumns": "Comma-separated column names. Leave empty to auto-detect numeric columns.",
"hasHeader": true,
"includeInterpretation": true,
"outputFormat": "report"
}
}
}| — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]