kmeans_cluster
Partition numeric vectors into k clusters using k-means to group similar data points for analysis or segmentation.
Instructions
Partition points into k clusters using the k-means algorithm.
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": {
"points": "<points>"
},
"name": "kmeans_cluster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Number of clusters (default 3) | |
| points | Yes | Array of numeric vectors (all same dimension) | |
| max_iterations | No | Max iterations (default 100) |