analyze_text
Compute word, character, and sentence counts for any text and get an estimated reading time.
Instructions
Compute word, character, and sentence counts plus an estimated reading time.
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": "analyze_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to analyze. Must be non-empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word_count | Yes | Number of whitespace-separated words. | |
| sentence_count | Yes | Number of sentences, split on '.', '!', and '?'. | |
| character_count | Yes | Total number of characters, including whitespace. | |
| average_word_length | Yes | Mean number of characters per word. | |
| estimated_reading_time_seconds | Yes | Estimated reading time at 200 words per minute. |