recluster_tools
Run the full ML pipeline to re-cluster all MCP tools: extract features, embed docstrings, apply K-Means, and rebuild the taxonomy with silhouette-based cluster selection.
Instructions
Trigger re-clustering of all MCP tools (SAFE_READ).
Runs the full ML pipeline: extract features from tool definitions,
embed docstrings, cluster via K-Means, and regenerate the taxonomy.
Args:
provider: Embedding provider — "zero" (fast stub) or "github"
(real embeddings, requires GITHUB_MODELS_TOKEN).
k: Override number of clusters. None = auto-select via silhouette.
alpha: Structural feature weight (0–1). Embedding weight = 1 − alpha.
Returns:
str: JSON summary with categories, silhouette score, and tool assignments.
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": "recluster_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| alpha | No | ||
| provider | No | zero |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |