word_stats
Analyze text by counting words and Unicode characters and ranking words by case-insensitive frequency, with a configurable top-N list for quick frequency insights.
Instructions
Count words and Unicode characters, and rank words by frequency (case-insensitive).
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": "word_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of top words to return. | |
| text | Yes | Text to analyze (up to 100,000 UTF-16 code units). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topWords | Yes | ||
| wordCount | Yes | ||
| characterCount | Yes |