Check a word limit
check_word_limitChecks an essay against a word limit by counting words, optionally excluding references or quotes, and reports how many words remain or exceed the limit.
Instructions
Compare an essay against a word limit. Inputs: text, limit (the maximum word count), optional minimum (a lower bound), optional tolerance_percent (how far over the limit is still acceptable, default 0, a common rule is 10), optional exclude_references (cut everything from a heading line such as References, Works Cited or Bibliography to the end) and optional exclude_quotes (leave out block quotes that start with > and text inside double quotes). Returns the counted words, how many are left or over, and what was excluded. Example: "Is this under 2000 words if I leave out the works cited and quotes?"
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>",
"limit": "<limit>"
},
"name": "check_word_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| limit | Yes | Maximum number of words. | |
| minimum | No | Minimum number of words. | |
| exclude_quotes | No | Leave out quoted passages. Default false. | |
| tolerance_percent | No | Percent over the limit that is still fine. Default 0. | |
| exclude_references | No | Leave out the references section. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| status | Yes | ||
| minimum | Yes | ||
| words_over | Yes | ||
| total_words | Yes | ||
| counted_words | Yes | ||
| allowed_maximum | Yes | ||
| words_remaining | Yes | ||
| excluded_quote_words | Yes | ||
| excluded_reference_words | Yes |