statistics
Calculate key data metrics from a JSON array—mean, median, mode, standard deviation, variance, min, max, sum, product—to summarize any dataset.
Instructions
Calculate statistical values like mean, median, mode (returns array), std (standard deviation), variance, min, max, sum, product.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>",
"data": "<data>"
},
"name": "statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data array in JSON format (e.g., '[1, 2, 3, 4, 5]') | |
| operation | Yes | Statistical operation to perform. Note: mode returns an array (single mode: [value], multiple modes: [value1, value2]) |