Propose query clusters automatically
start_auto_clusteringStart a background job that proposes how to group up to 500 tracked queries into clusters. mode "fill_gaps" places only queries that have no cluster yet; "add_on_top" adds clusters without touching existing memberships; "full_regroup" proposes a fresh grouping of every query. restrictToExistingClusters only uses the project's current clusters. Nothing changes until apply_auto_clustering: poll get_job, show the proposal to the user, then apply it. Requires an active subscription.
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": {
"organizationId": "<organizationId>",
"projectId": "<projectId>",
"trackedQueryIds": "<trackedQueryIds>",
"mode": "<mode>"
},
"name": "start_auto_clustering"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| projectId | Yes | ||
| requestId | No | Optional idempotency key, 8-255 printable characters. Reuse it only to retry this same call. | |
| organizationId | Yes | ||
| trackedQueryIds | Yes | ||
| restrictToExistingClusters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Pass it to get_job. May name a job started by an earlier, equivalent call. | |
| nextStep | Yes | ||
| deduplicated | Yes | Whether this call joined a job that was already running instead of starting one |