Text stats + token estimate
text_statsCount characters, words, sentences, lines and paragraphs, estimate LLM tokens, reading time and readability (Flesch), and pull out every URL, email, @handle, #tag, number and crypto address. Token count is an estimate (~4 characters per token for English; code and non-Latin scripts differ). Extraction uses strict patterns; EVM addresses are checksum-validated. Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).
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 | Text (or a URL when extract=true) to analyse. | |
| extract | No | true = if text is a URL, fetch the page and analyse its readable text. Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| words | No | ||
| extracted | No | ||
| sentences | No | ||
| characters | No | ||
| paragraphs | No | ||
| readability | No | ||
| reading_minutes | No | ||
| estimated_tokens | No | ||
| flesch_reading_ease | No | ||
| characters_no_spaces | No |