np_mean
Compute the arithmetic mean of array elements along a specified axis, with optional axis parameter to average the entire array or along dimensions.
Instructions
Compute the arithmetic mean along the specified axis.
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": {
"array": "<array>"
},
"name": "np_mean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| axis | No | Axis along which to compute mean (default: None, mean of all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |