Skip to main content
Glama

Text Statistics

text_stats
Read-only

Analyze a block of text: character/word/sentence/paragraph counts, unique-word and average-word-length metrics, reading (~200 wpm) and speaking (~130 wpm) time, character-class percentages, and the most frequent words.

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_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to analyze.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile of this pure computation tool is covered. The description adds useful behavior context by naming the reading (~200 wpm) and speaking (~130 wpm) assumptions, but says nothing about input size limits, truncation, or how character classes are bucketed.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, and the colon structure puts the verb and resource first. The metric list is dense but each clause maps to a distinct returned value, so nothing is wasted, though the enumeration runs long for one sentence.

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?

With no output schema, the description usefully compensates by enumerating what the response contains, and annotations cover the safety side. It lacks only details like output field naming or how mixed-language/empty input is handled, which are minor for a single-parameter stat tool.

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% and there is only one required parameter, so the schema already carries the parameter documentation. The phrase "a block of text" adds no constraint, format, or size detail beyond what the schema states; baseline 3 applies.

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?

"Analyze a block of text" gives a specific verb and resource, then enumerates the exact metrics produced (character/word/sentence/paragraph counts, unique words, reading/speaking time, character-class percentages, frequent words). This is unambiguous and clearly distinct from siblings like hash_text, base64, or slugify, which transform rather than measure text.

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 guidance on when to use this versus alternatives, no exclusions, and no prerequisites stated. Usage is only inferable from the metric list itself, and the description never mentions the sibling text tools (hash_text, slugify) it might be confused with.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources