Skip to main content
Glama
Mencoro MCP server

Mencoro MCP server

Apply a proposed clustering

apply_auto_clustering
Destructive

Apply a completed auto-clustering proposal: create the named clusters and move tracked queries into them according to the job’s mode (full regroup, fill gaps, or add on top).

Instructions

Apply the grouping a completed start_auto_clustering job proposed: creates the clusters it named and moves the tracked queries into them, as the job's mode said. In "full_regroup" mode a tracked query the proposal places also leaves every cluster the proposal did not put it in; "fill_gaps" and "add_on_top" only add. No cluster or tracked query is deleted. Cluster names are lower-cased like create_clusters, and a proposed name that matches an existing cluster reuses it instead of creating a second one. The response lists each tracked query's resulting clusters, not the memberships removed, so show the proposal (get_job) to the user first. Pass a fresh requestId and reuse it if you retry, so a retry never applies twice.

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>",
      "jobId": "<jobId>"
    },
    "name": "apply_auto_clustering"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYes
projectIdYes
requestIdNoOptional idempotency key, 8-255 printable characters. Reuse it only to retry this same call.
organizationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description offers highly specific behavioral context beyond the annotations, detailing naming conventions (lower-cased reuse), cluster handling logic (what remains in 'full_regroup' mode), and the limitations of the response (it only shows resulting clusters, not memberships removed).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is quite long, which detracting from conciseness. However, every sentence is packed with unique, high-value technical constraints, so its density is appropriate despite its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of cluster management, operational modes, and the necessity of idempotency, the description is remarkably complete. It covers the how, why, and when of using this complex mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given that schema coverage is low (25%), the description provides vital semantic context. It specifies that `jobId` must belong to a *completed* job and details the required logic for the `requestId` to ensure idempotency on retry.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the purpose: applying a proposal from a completed auto-clustering job. It distinguishes itself by clarifying that it executes the job's proposed grouping, which is a more active process than just creating a cluster.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

This description provides excellent workflow guidance. It specifies usage based on operation modes ('full_regroup', 'fill_gaps', 'add_on_top') and gives a critical warning that the user must check the 'get_job' output first, preventing incorrect tool invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.