Count Text Stats
count_text_statsReturn word, character, sentence, and paragraph counts plus average words per sentence for a given text, for length checks and content sizing decisions.
Use when: Use when output length must be validated or reported — e.g. verifying a summary meets a length contract or comparing document sizes. Do not use for semantic summarization; it counts only.
Limitations: Pure counting on the provided text — no language detection, no reading-level or sentiment analysis, and no retrieval of external content.
Alternatives: web_search, http_fetch
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to summarize |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word_count | Yes | ||
| sentence_count | Yes | ||
| character_count | Yes | ||
| paragraph_count | Yes | ||
| average_words_per_sentence | Yes |