Histograma
stats-histogramAgrupa números en intervalos de igual ancho y devuelve conteos. Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: calcular percentiles (stats-percentile). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Buckets numbers into equal-width bins (count or explicit edges), returning bin ranges and counts; the last bin includes its upper edge. When: a numeric result has to be exact or reproducible instead of estimated. Not for: computing one or more percentiles (stats-percentile). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
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": {
"values": "<values>"
},
"name": "stats-histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Upper bound (default data max) (number; optional). | |
| min | No | Lower bound (default data min) (number; optional). | |
| bins | No | Number of bins (integer; optional; default 10; min 1; max 1000). | |
| values | Yes | Numbers (array of number; required; at least 1 items). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | ||
| outside | No |