Calc Stats
calc_statsCalculate mean, median, sample standard deviation, and coefficient of variation for a numeric sample. Identify run-to-run noise when CV exceeds 0.2.
Instructions
Mean, median, sample stdev, and coefficient of variation (CV) for a sample of numbers. Pairs with percentiles for distribution shape (p50/p90/p95/p99) on the same sample, and with benchmark or verify_optimization, which are common sources of the timing samples this tool summarizes. CV > 0.2 flags run-to-run noise that swamps the effect. Returns n/mean/median/stdev/cv plus a cv_note.
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": {
"nums": "<nums>"
},
"name": "calc_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nums | Yes | Sample of numbers to summarize (mean, median, sample stdev, coefficient of variation) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||