post_calc_stats
Exact descriptive statistics — LLMs cannot reliably sum 200 numbers; this can. POST {values:[…]} for count/sum/mean/median/stddev/percentiles; {x:[],y:[]} for Pearson correlation + linear regression; {rows:[…], field} for object arrays — or {collection, field?} to run stats DIRECTLY ON YOUR DATASTORE collection (the paying wallet is the identity; reading extends its life 30 days). Up to 100k values, Kahan-summed. ($0.005 per call, paid via x402)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "post_calc_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | with y: correlation + regression | |
| y | No | ||
| rows | No | objects — with field/fields to pick columns | |
| field | No | ||
| values | No | numbers to describe | |
| collection | No | run stats on YOUR datastore collection instead of posting data |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| min | No | ||
| sum | No | ||
| mean | No | ||
| count | No | ||
| median | No | ||
| stddev | No | ||
| variance | No | ||
| pearson_r | No | ||
| regression | No | ||
| percentiles | No |