mcp-text-stats
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TEXT_STATS_ROOTS | No | Semicolon-separated list of absolute paths that the server is allowed to access. If not set or empty, all paths are rejected (secure default). Example: /srv/work/tools;/srv/work/data. Windows also accepts commas or newlines as separators. |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| count_textA | 统计文件或文本的字素/码点/UTF-16 单元数、字素簇、行、段落、句子、词数以及按 Unicode 脚本分类的字符计数。返回纯数字与路径,绝不返回正文片段。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its purpose—computing text statistics—is stated unambiguously.
count_text follows a clear verb_noun snake_case convention, which is readable and predictable. With only a single name, there is no pattern to cross-check, which slightly limits confidence.
A single tool is thin for a server surface, even though the one tool is broad and non-trivial. It is borderline: focused, but offers no composability.
The tool covers many statistics (graphemes, code points, UTF-16 units, grapheme clusters, lines, paragraphs, sentences, words, script breakdown), which is broad for the counting domain. However, gaps remain: no batch or multi-file aggregation, no comparison or diff between texts, and no size-in-bytes metric.