Word Length
word_lengthDetermine the precise length of any text, with breakdowns for spaces, characters without spaces, and word count.
Instructions
Get the exact length of text with detailed breakdown.
Args:
text (string): The text to measure
count_spaces (boolean): Include spaces in length (default: true)
Returns: Total length, length without spaces, space count, word count.
Example: word_length("hello world") → 11 total, 10 without spaces, 2 words
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_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to measure | |
| count_spaces | No | Include spaces in length |