Count words and characters
count_textUse this when the user wants a word count, character count (with or without spaces), sentence or paragraph count, reading or speaking time, readability, or keyword density for text they provide, including essay counts without citations, quotes, headings, or the reference list. Pass the text exactly as written. Handles up to 100,000 characters and Japanese, Chinese, and Thai word splitting. Does not rewrite, shorten, translate, or grade the text, and does not read files or URLs.
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": "count_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The exact text to count, copied verbatim from the user without edits (up to 100,000 characters). Example: The quick brown fox jumps over the lazy dog. | |
| language | No | Optional BCP 47 language code, e.g. ja. Improves word splitting for Japanese, Chinese, and Thai; readability scores are only given for English. | |
| exclude_quotes | No | Leave out passages inside double quotation marks ("...", curly quotes, guillemets). Example: false. | |
| exclude_headings | No | Leave out headings: Markdown # lines and short title lines directly above a paragraph. Example: true. | |
| exclude_citations | No | Leave out in-text citations: APA (Smith, 2020), (Lee et al., 2019, p. 12), MLA (Smith 23), page refs (p. 4), and numeric [3]. Example: true. | |
| exclude_reference_list | No | Leave out everything from a References, Works Cited, or Bibliography heading to the end. Example: true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| lines | Yes | ||
| words | Yes | ||
| letters | Yes | ||
| options | Yes | ||
| privacy | Yes | ||
| excluded | No | ||
| keywords | Yes | ||
| sentences | Yes | ||
| characters | Yes | ||
| paragraphs | Yes | ||
| readability | Yes | ||
| reading_time | Yes | ||
| unique_words | Yes | ||
| speaking_time | Yes | ||
| cjk_characters | No | ||
| long_sentences | Yes | ||
| original_words | No | ||
| avg_word_length | Yes | ||
| longest_sentence | Yes | ||
| avg_sentence_words | Yes | ||
| characters_no_spaces | Yes |