gate402_token_count
Estimate token count of any text using cl100k/o200k tokenizer to budget context windows. Free to use.
Instructions
FREE. Estimate the token count of a string (cl100k/o200k tokenizer). Use to budget context windows. No payment required.
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": "gate402_token_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to count tokens for. |