variance
Computes the average squared deviation from the mean for a list of numbers, returning a single statistical dispersion value.
Instructions
Computes the variance of a list of numbers.
Args: data: A list of numerical values.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> variance([1, 2, 3, 4]) {'result': 1.25}
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": {
"data": "<data>"
},
"name": "variance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |