text_stats
Text statistics and word frequency (offline) — Full offline statistics for any text up to 100,000 characters: characters, words, unique words, sentences, paragraphs, lines, questions, numbers, URLs, emails, hashtags, mentions; averages (word length, words per sentence); vocabulary (lexical diversity, hapax words, long-word and capital-letter share); reading and speaking time; longest sentence; top words with density, top repeated 2- and 3-word phrases; and flags (long sentences, shouting, repetition, keyword stuffing). Optional top (1-50, default 15). For grade-level scores use /v1/text/readability. Price: $0.001 USDC (Base, via x402).
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
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | e.g. Coffee is the most popular drink in the office. We drink coffee every morning. Good coffee makes a good morning, and cold coffee makes a long day. |