post_text_stats
Calculate character, word, line and byte statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Calculate character, word, line and byte statistics.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral burden. It clearly implies a pure calculation with no side effects, but it does not disclose return format, encoding assumptions, or edge-case behavior. This is acceptable for a simple calculator but leaves some ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, focused sentence with no filler. The core action and target resource are front-loaded and every word contributes to meaning.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple: one required string parameter and a straightforward calculation. The description covers what the tool does and identifies the input, but without an output schema it does not specify how results are returned. This is a minor gap for such a simple tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It clarifies that 'text' is the input to be analyzed for character, word, line, and byte statistics. However, it adds no details about expected encoding, empty strings, or constraints, so it only partially compensates.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource: 'Calculate character, word, line and byte statistics.' This clearly states what the tool does and is distinguishable from text-modifying siblings like post_text_dedupe_lines. It does not explicitly name a sibling or scope limitation, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given for when to use this tool versus alternatives such as post_text_dedupe_lines or other text utilities. The intended context is only implied by the name and description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.