Skip to main content
Glama

Agent Data Tools: Utilities

Word count and readability: count words, characters and sentences and estimate reading time and readability

text_stats
Read-only

Count characters, words, sentences and paragraphs, estimate reading and speaking time, and compute the Flesch reading-ease score and grade level for English text. Use to check the length and readability of a draft. Example: text=The quick brown fox jumps over the lazy dog. It was not amused.. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds real value beyond them: the English-only constraint (material, since Flesch is language-specific), per-call billing via x402 USDC or a card key, the first-10-free and failed-calls-free rules, and the explicit note that repeats are not free — which explains the otherwise puzzling idempotentHint=false. It does not describe the shape of the returned metrics, which is the main remaining gap.

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?

Front-loaded with the capability list, then usage, then example, then commercial terms — a logical ordering. The example sentence with its stray double period ("It was not amused..") is slightly confusing, and the pricing clause is dense, but nothing is seriously wasted.

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-output-schema tool, the description covers what is computed, the language restriction, cost model, and non-mutating nature, which is nearly everything an agent needs to call it correctly. Only the return-value shape (field names for the counts and scores) is left implicit.

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?

With a single required parameter and 100% schema coverage, the baseline is 3. The description adds that the text should be English and shows a sample value, but the schema's "The text" is still thin and the description offers no length limits or formatting expectations.

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 states a specific verb set and resource: count characters/words/sentences/paragraphs, estimate reading and speaking time, compute Flesch reading-ease and grade level. That enumeration makes it distinguishable from text_keyword_density or pack_text_analysis without opening a schema, and it also names the language scope (English text).

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

Usage Guidelines4/5

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

"Use to check the length and readability of a draft" gives a clear triggering context, and the inline example makes the invocation concrete. It does not name when to prefer a sibling (e.g., keyword density vs. readability), so it stops short of explicit exclusions.

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