chinese-char-counter-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| count_chinese_charactersA | 统计一段文本的中文字数(不算标点、空格、英文字母、数字等)。 Args: text: 待统计的文本,长度上限 200000 个字符。 Returns: chinese_count 为中文字数(CJK 表意文字,含扩展区与“〇”); total_characters 为文本总字符数(含标点、空格等全部字符); chinese_ratio 为中文占全部字符的比例(保留 4 位小数); breakdown 为分项计数:chinese/letters/digits/punctuation/spaces/other; error 为失败原因,成功时为空字符串。 |
| count_chinese_characters_batchA | 批量统计多条文本的中文字数,并给出合计。 Args: texts: 文本列表,最多 500 条,每条长度上限 200000 个字符。 Returns: results 与输入顺序一致,每项含 index/total_characters/chinese_count/chinese_ratio; text_count 为实际统计条数;total_chinese_count 为所有文本的中文字数合计; error 为失败原因,成功时为空字符串。 |
| extract_chinese_textA | 抽取文本中的中文字符,剔除标点、空格、英文、数字等其它字符。 Args: text: 待处理的文本,长度上限 200000 个字符。 Returns: chinese_text 为仅由中文字符按原顺序组成的文本; chinese_count 为抽取出的中文字数; error 为失败原因,成功时为空字符串。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |