character-counter
Count characters in text, with and without spaces. Returns separate counts so you can answer questions like 'fits in a tweet (280 chars)?' or 'fits in an SMS (160 chars)?' without guessing.
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": "character-counter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to analyze. Capped at 60,000 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fits_sms | Yes | True if 160 characters or fewer. | |
| characters | Yes | Total characters. | |
| fits_tweet | Yes | True if 280 characters or fewer. | |
| characters_no_spaces | Yes | Characters excluding ASCII whitespace. | |
| characters_no_whitespace | Yes | Characters excluding all Unicode whitespace. |