median
Need to find the central value in a dataset? Compute the middle number from a non-empty list to get a robust summary.
Instructions
Calculate the median of a non-empty list.
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": "median"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |