util_kmeans
K-means clustering — Cluster numeric points with k-means++ (seeded, reproducible). data= points separated by ; with comma-separated coordinates (1-20 dims, max 600 points) or a plain comma list for 1-D values. Optional k= (otherwise auto-picks k=2..8 by silhouette, k=1 when there is no real structure), scale=true|false (z-score, default on for 2+ dims), labels= names separated by ;, seed=. Returns clusters with centroids in original units, sizes, spread, outliers, assignments, silhouette quality (STRONG/REASONABLE/WEAK/NO_SUBSTANTIAL_STRUCTURE) and the k-selection table. Price: $0.003 USDC (Base, via x402).
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": {
"data": "<data>"
},
"name": "util_kmeans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 1,2;1.5,1.8;5,8;8,8;1,0.6;9,11;8,2;10,2;9,3 |