geometric-mean
Compute the geometric mean (n-th root of the product) of a list of positive numbers. Also returns the arithmetic mean for comparison.
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": {
"numbers": "<numbers>"
},
"name": "geometric-mean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes | Array of positive numbers. Negative or zero values invalidate the geometric mean. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many numbers were summarized. | |
| geometric_mean | Yes | Geometric mean (n-th root of the product). | |
| arithmetic_mean | Yes | Arithmetic mean, for comparison. |