Skip to main content
Glama

css__CreateLoadIkThesaurus

Loads custom IK thesaurus files from OBS into a CSS cluster to configure main, stop, and synonym dictionaries for search analysis.

Instructions

[CSS] 该接口用于加载存放于OBS的自定义词库。

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": {
      "bucketName": "<bucketName>",
      "cluster_id": "<cluster_id>",
      "project_id": "<project_id>"
    },
    "name": "css__CreateLoadIkThesaurus"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketNameYes词库文件存放的OBS桶(桶类型必须为标准存储或者低频存储,不支持归档存储)。
cluster_idYes指定配置自定义词库的集群ID。
mainObjectNo主词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持100M。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。
stopObjectNo停词词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持20M。
synonymObjectNo同义词词库文件,必须为UTF-8无BOM编码的文本文件,一行一组分词,文件大小最大支持20M。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and discloses almost nothing: it does not say whether the call mutates cluster configuration, whether it is idempotent or overwrites an existing thesaurus, what permissions are needed, or what happens on partial failure. The file-format and size constraints live in the schema fields, not in the description, so they add no credit here.

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?

It is a single short sentence with no padding, which is efficient, but for a six-parameter mutating operation with no annotations it is under-specified rather than appropriately concise. Nothing is front-loaded beyond the generic verb-resource phrase.

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

Completeness2/5

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

A six-parameter, three-required mutation-style tool with no annotations and no output schema gets only one sentence of description. An agent cannot tell from the definition whether the call is safe to repeat, what it changes, or what a successful response signifies, leaving significant gaps relative to the tool's complexity.

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%, with per-field detail on bucket type restrictions, encoding requirements, and file-size limits, so the schema already does the heavy lifting. The description adds no parameter meaning beyond what the schema provides, making the baseline 3 appropriate.

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

Purpose3/5

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

The description names a verb (load) and a resource (custom thesaurus stored in OBS), which distinguishes it from the sibling Delete/Show thesaurus tools. However, 'load' is ambiguous — it never says this configures the IK analyzer of a specific cluster, nor that it creates/updates a thesaurus configuration rather than merely fetching one. The purpose is inferable but not stated with precision.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., cluster must exist and be reachable), and no mention of when to prefer DeleteIkThesaurus or ShowIkThesaurus instead. The only hint is the OBS storage requirement embedded in the schema, not the description.

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

Deploy Server

Other Tools