Skip to main content
Glama

analyze_clustering

Clusters patent texts to uncover technology topic groups and generate key keywords for each cluster using TF-IDF and K-means for exploratory patent analysis.

Instructions

对专利文本进行聚类分析,自动发现技术主题群组。使用 TF-IDF 空间 K-means 聚类,为每个簇生成关键技术关键词。适用于用户询问'聚类'、'技术主题'、'分组'、'技术方向'等关键词。 方法: 默认字符 n-gram TF-IDF 空间 K-means;采用固定种子的多次随机样本初始化,标签使用分词词项与 Tseng CC0.5;未指定 k 时以 silhouette 与 ARI 稳定性选择。 算法: multilingual_char_ngram_kmeans_cc05 v3.2 证据等级: paper_adapted 禁止结论: complete Tseng multi-stage pipeline, ground-truth technology taxonomy

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": "analyze_clustering"
  }
}

Input Schema

NameRequiredDescriptionDefault
n_clustersNo聚类数量;不填时用 silhouette 与稳定性自动选择。
vectorization_modeNo默认字符 n-gram,适合中文和混合语种;分词词项模式用于领域词典已校准的语料。char_ngram_tfidf

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the TF-IDF char n-gram K-means method, fixed-seed repeated initialization (implying reproducibility), silhouette/ARI stability selection when k is omitted, algorithm version, evidence level, and explicit forbidden conclusions. It omits the read-only/computational-cost profile and expected input size, which keeps it from a 5.

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

Conciseness4/5

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

Purpose and trigger keywords are front-loaded, and the following method/algorithm/evidence/limitation lines are information-dense rather than padded. The labeled section format is slightly list-heavy but every line carries routing or behavioral value.

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

Completeness4/5

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

For a 2-parameter, no-annotation, no-output-schema analysis tool, the description covers what it does, how it decides k, what it returns at a high level (per-cluster keywords), and what conclusions it must not support. Return structure and input-data prerequisites are only implied, leaving a minor gap.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented in the schema. The description restates the default char n-gram mode and the auto-k selection logic that the schema already explains, adding little parameter-level meaning beyond what is structured.

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?

States a specific verb (聚类分析) and resource (专利文本), plus the outcome (自动发现技术主题群组). It is clearly distinguishable from analysis siblings like analyze_tech_matrix or analyze_yearly_keywords, though it never names a sibling explicitly.

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

Usage Guidelines4/5

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

Provides explicit trigger phrases ('聚类'、'技术主题'、'分组'、'技术方向') that tell the agent when to select this tool. It gives no when-not conditions or named alternatives, so the guidance is clear but not exhaustive.

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