Skip to main content
Glama
cn-mcp-kit

cn-mcp-kit

by yuannuo233

text_statistics

Count Chinese text characters, Chinese characters, letters, digits, punctuation, lines, and paragraphs with Word-compatible word counting to check document length.

Instructions

统计中文文本的字数、字符数、汉字数、字母数、数字数、标点数、行数和段落数。字数口径与 Word 一致(每个汉字算 1,连续字母或数字算 1 个)。

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": {
      "text": "<text>"
    },
    "name": "text_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes要统计的文本

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add one genuinely valuable behavioral detail – the Word-compatible counting convention (每个汉字算 1,连续字母或数字算 1 个) – which no structured field provides, but it never states whether the result is a set of numeric fields or a formatted string, nor how empty, whitespace-only, or non-Chinese input is handled.

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

Conciseness5/5

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

Two sentences, both earning their place: the first front-loads the full metric list, the second resolves the one real ambiguity (how words are counted). No filler, no restatement of the tool name.

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 one-parameter, no-annotation, no-output-schema tool, the enumeration of metrics effectively discloses what comes back, which covers most of the gap left by the missing output schema. What remains unexplained is the return shape (individual numeric fields vs. a formatted report) and behavior on non-Chinese or empty input.

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?

With a single parameter at 100% schema coverage, the schema already defines 'text' as 要统计的文本, so the baseline holds. The description adds no parameter-specific constraints such as size limits or input encoding expectations, but the counting rule sentence does clarify what kind of content the one parameter is expected to carry.

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

Purpose5/5

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

The description names a specific action (统计) applied to a specific resource (中文文本) and enumerates exactly what is counted: 字数、字符数、汉字数、字母数、数字数、标点数、行数、段落数. That enumeration makes the tool unmistakable against siblings such as hanzi_pinyin or s2t_convert, which transform text rather than measure it.

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

Usage Guidelines3/5

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

Usage is only implied by the mention of 中文文本 – an agent can infer this is the tool for measuring text, but there is no explicit when-to-use, no stated behavior for non-Chinese or mixed input, and no mention of alternatives. No routing or exclusion guidance is given.

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