visualize_cluster_distribution
Create a bar chart showing the number of documents per cluster to analyze cluster size distribution. Supports K-Means, DBSCAN, and HDBSCAN algorithms.
Instructions
Generate bar chart showing cluster size distribution. Shows how many documents are in each cluster.
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": {
"algorithm": "<algorithm>",
"output_path": "<output_path>"
},
"name": "visualize_cluster_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algorithm | Yes | Clustering algorithm | |
| output_path | Yes | Path to save the bar chart image (PNG) | |
| width | No | Image width in pixels (default: 1000) | |
| height | No | Image height in pixels (default: 600) |